MCPcopy Create free account
hub / github.com/beutton/browser-flight-simulator / constructor

Method constructor

packages/clouds/src/ShadowPass.ts:52–70  ·  view source on GitHub ↗
({
    parameterUniforms,
    layerUniforms,
    atmosphereUniforms,
    ...options
  }: ShadowPassOptions)

Source from the content-addressed store, hash-verified

50 private height = 0
51
52 constructor({
53 parameterUniforms,
54 layerUniforms,
55 atmosphereUniforms,
56 ...options
57 }: ShadowPassOptions) {
58 super('ShadowPass', options)
59
60 this.currentMaterial = new ShadowMaterial({
61 parameterUniforms,
62 layerUniforms,
63 atmosphereUniforms
64 })
65 this.currentPass = new ShaderArrayPass(this.currentMaterial)
66 this.resolveMaterial = new ShadowResolveMaterial()
67 this.resolvePass = new ShaderArrayPass(this.resolveMaterial)
68
69 this.initRenderTargets()
70 }
71
72 override initialize(
73 renderer: WebGLRenderer,

Callers

nothing calls this directly

Calls 1

initRenderTargetsMethod · 0.95

Tested by

no test coverage detected