Skip to content

Instantly share code, notes, and snippets.

@andybak
Created September 18, 2024 11:36
Show Gist options
  • Save andybak/4e55f8e8b799944cb6b33e98fd168250 to your computer and use it in GitHub Desktop.
Save andybak/4e55f8e8b799944cb6b33e98fd168250 to your computer and use it in GitHub Desktop.
Scenes
======
background: {
color: #aaaaaa
}
Nodes
=====
TODO: Trigger Volume
shadow: {
cast: false,
receive: false
}
media-frame: {
mediaType: all-2d,
bounds: {
x: 1,
y: 1,
z: 1
}
},
networked: {id: 058932DA-8C76-4681-8187-B5218C381FD7}
box-collider: {
position: {
x: 0,
y: 0,
z: 0
},
rotation: {
x: 0,
y: 0,
z: 0
},
scale: {
x: 100,
y: 0.1,
z: 100
}
}
spawn-point: {}
waypoint: {
canBeSpawnPoint: false,
canBeOccupied: false,
canBeClicked: false,
willDisableMotion: false,
willDisableTeleporting: false,
snapToNavMesh: false,
willMaintainInitialOrientation: false
},
networked: {id: F037859C-D5F0-4EED-9235-A75BB4B958D4}
nav-mesh: {},
visible: {
visible: false
}
}
trimesh: {},
visible: {
visible: false
}
media-frame: {
mediaType: all-2d,
bounds: {
x: 1,
y: 1,
z: 1
}
},
networked: {id: 4B8EF579-04A1-4729-85AA-2821A8242B78}
audio-zone: {
target: {
__mhc_link_type: node
},
enabled: true,
inOut: true,
outIn: true
}
}
ambient-light: {
color: #ffffff,
intensity: 1
}
hemisphere-light: {
skyColor: #ffffff,
groundColor: #ffffff,
intensity: 1
}
skybox: {
turbidity: 10,
rayleigh: 2,
luminance: 1,
mieCoefficient: 0.005,
mieDirectionalG: 0.8,
inclination: 0,
azimuth: 0.15,
distance: 8000
}
directional-light: {
color: #ffffff,
intensity: 1,
castShadow: true,
shadowMapResolution: [
512,
512
],
shadowBias: 0,
shadowRadius: 1
}
spot-light: {
color: #ffffff,
intensity: 1,
range: 0,
innerConeAngle: 2.6,
outerConeAngle: 0.7,
castShadow: true,
shadowMapResolution: [
512,
512
],
shadowBias: 0,
shadowRadius: 1
}
point-light: {
color: #ffffff,
intensity: 1,
range: 0,
castShadow: true,
shadowMapResolution: [
512,
512
],
shadowBias: 0,
shadowRadius: 1
}
image: {
src: https://example.com/foo.png,
controls: true,
alphaMode: opaque,
projection: flat
},
networked: {id: E93CCDFF-57C7-41AE-8CF8-B020F9527607}
video: {
src: https://example.com/foo.mp4,
controls: true,
autoPlay: true,
loop: true,
projection: flat
},
networked: {id: 896B0875-0A9D-46B9-A533-B78159735C45}
audio: {
src: https://example.com/foo.mp3,
controls: true,
autoPlay: true,
loop: true
},
networked: {id: 1A3D5CFA-264A-45C5-BCBF-269ACC04777F}
spawner: {
src: https://example.com/foo.gltf,
mediaOptions: {
applyGravity: false
}
}
link: {
href: https://example.com/index.html,
},
networked: {id: 70BA21C9-F3D3-47D0-B4FA-4D4DBC2CB385}
particle-emitter: {
src: https://example.com/foo.png,
startColor: #ffffff,
middleColor: #ffffff,
endColor: #ffffff,
startOpacity: 1,
middleOpacity: 1,
endOpacity: 1,
colorCurve: linear,
sizeCurve: linear,
startSize: 0.25,
endSize: 0.25,
sizeRandomness: 0,
ageRandomness: 10,
lifetime: 5,
lifetimeRandomness: 5,
particleCount: 100,
startVelocity: {
x: 0,
y: 0,
z: 0.5
},
endVelocity: {
x: 0,
y: 0,
z: 0.5
},
velocityCurve: linear,
angularVelocity: 0
}
simple-water: {
opacity: 1,
color: #0054df,
tideHeight: 0.01,
tideScale: {
x: 1,
y: 1
},
tideSpeed: {
x: 0.5,
y: 0.5
},
waveHeight: 0.1,
waveScale: {
x: 1,
y: 20
},
waveSpeed: {
x: 0.05,
y: 6
},
ripplesSpeed: 0.25,
ripplesScale: 1
}
scene-preview-camera: {}
text: {
value: Text,
anchorX: center,
anchorY: middle,
color: #ffffff,
curveRadius: 0,
depthOffset: 0,
direction: auto,
fillOpacity: 1,
fontSize: 0.075,
letterSpacing: 0,
clipRect: null,
lineHeight: 1,
outlineBlur: 0,
outlineColor: #ffffff,
outlineOffsetX: 0,
outlineOffsetY: 0,
outlineOpacity: 1,
outlineWidth: 0,
overflowWrap: normal,
strokeColor: #ffffff,
strokeOpacity: 1,
strokeWidth: 0,
textAlign: left,
textIndent: 0,
whiteSpace: normal,
maxWidth: 9999
}
mirror: {
color: #7f7f7f
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment