Skip to main content

Variable: pbrScene

const pbrScene: object

Defined in: modules/lighting/pbr-material/pbr-scene.ts:80

Type Declaration​

bindingLayout​

readonly bindingLayout: readonly [{ group: 1; name: "pbrScene"; }, { group: 1; name: "pbr_transmissionFramebufferSampler"; }]

defaultUniforms​

readonly defaultUniforms: Required<PBRSceneUniforms>

fs​

readonly fs: "layout(std140) uniform pbrSceneUniforms {\n float exposure;\n highp int toneMapMode;\n float environmentIntensity;\n float environmentRotation;\n float environmentMipCount;\n highp int outputEncoding;\n vec2 framebufferSize;\n mat4 viewMatrix;\n mat4 projectionMatrix;\n} pbrScene;\n\n#ifdef USE_TRANSMISSION_FRAMEBUFFER\nuniform sampler2D pbr_transmissionFramebufferSampler;\n#endif\n" = uniformBlock

getUniforms​

readonly getUniforms: (props) => PBRSceneProps<unknown>

Parameters​

props​

PBRSceneProps

Returns​

PBRSceneProps<unknown>

name​

readonly name: "pbrScene" = 'pbrScene'

source​

readonly source: "struct pbrSceneUniforms {\n exposure: f32,\n toneMapMode: i32,\n environmentIntensity: f32,\n environmentRotation: f32,\n environmentMipCount: f32,\n outputEncoding: i32,\n framebufferSize: vec2<f32>,\n viewMatrix: mat4x4<f32>,\n projectionMatrix: mat4x4<f32>\n};\n\n@group(1) @binding(auto) var<uniform> pbrScene: pbrSceneUniforms;\n\n#ifdef USE_TRANSMISSION_FRAMEBUFFER\n@group(1) @binding(auto) var pbr_transmissionFramebufferSampler: texture_2d<f32>;\n@group(1) @binding(auto) var pbr_transmissionFramebufferSamplerSampler: sampler;\n#endif\n" = wgslUniformBlock

uniformTypes​

readonly uniformTypes: object

uniformTypes.environmentIntensity​

readonly environmentIntensity: "f32" = 'f32'

uniformTypes.environmentMipCount​

readonly environmentMipCount: "f32" = 'f32'

uniformTypes.environmentRotation​

readonly environmentRotation: "f32" = 'f32'

uniformTypes.exposure​

readonly exposure: "f32" = 'f32'

uniformTypes.framebufferSize​

readonly framebufferSize: "vec2<f32>" = 'vec2<f32>'

uniformTypes.outputEncoding​

readonly outputEncoding: "i32" = 'i32'

uniformTypes.projectionMatrix​

readonly projectionMatrix: "mat4x4<f32>" = 'mat4x4<f32>'

uniformTypes.toneMapMode​

readonly toneMapMode: "i32" = 'i32'

uniformTypes.viewMatrix​

readonly viewMatrix: "mat4x4<f32>" = 'mat4x4<f32>'

vs​

readonly vs: "layout(std140) uniform pbrSceneUniforms {\n float exposure;\n highp int toneMapMode;\n float environmentIntensity;\n float environmentRotation;\n float environmentMipCount;\n highp int outputEncoding;\n vec2 framebufferSize;\n mat4 viewMatrix;\n mat4 projectionMatrix;\n} pbrScene;\n\n#ifdef USE_TRANSMISSION_FRAMEBUFFER\nuniform sampler2D pbr_transmissionFramebufferSampler;\n#endif\n" = uniformBlock