SkyEffectSource
Defined in: sdk/src/postprocess/customSky.ts:25
Properties
Section titled “Properties”colors?
Section titled “colors?”
optionalcolors?:EffectColorDef[]
Defined in: sdk/src/postprocess/customSky.ts:32
Colour params (vec4).
glsl:
string
Defined in: sdk/src/postprocess/customSky.ts:36
GLSL declarations and vec3 skyRadiance(vec3 dir, vec3 sun, vec3 sunColor, float env).
label:
string
Defined in: sdk/src/postprocess/customSky.ts:28
textures?
Section titled “textures?”
optionaltextures?:Record<string, () =>BuiltinTexture>
Defined in: sdk/src/postprocess/customSky.ts:34
Textures the sky brings itself (a noise table), by sampler name: GLSL name, WGSL name with name_s.
type:
string
Defined in: sdk/src/postprocess/customSky.ts:27
The effect’s type, as a volume names it.
uniforms?
Section titled “uniforms?”
optionaluniforms?:EffectUniformDef[]
Defined in: sdk/src/postprocess/customSky.ts:30
The sky’s own float params. Brightness (u_intensity) and Light the Scene (u_lightScene) are added.
wgsl:
string
Defined in: sdk/src/postprocess/customSky.ts:38
The same in WGSL: fn skyRadiance(dir : vec3f, sun : vec3f, sunColor : vec3f, env : f32) -> vec3f.