MCPcopy
hub / github.com/4ian/GDevelop / _updateShadowMapSize

Method _updateShadowMapSize

Extensions/3D/DirectionalLight.ts:63–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61 }
62
63 private _updateShadowMapSize(): void {
64 if (!this._shadowMapDirty) {
65 return;
66 }
67 this._shadowMapDirty = false;
68
69 this._light.shadow.mapSize.set(
70 this._shadowMapSize,
71 this._shadowMapSize
72 );
73
74 // Force the recreation of the shadow map texture:
75 this._light.shadow.map?.dispose();
76 this._light.shadow.map = null;
77 this._light.shadow.needsUpdate = true;
78 }
79
80 isEnabled(target: EffectsTarget): boolean {
81 return this._isEnabled;

Callers 1

updatePreRenderMethod · 0.80

Calls 2

setMethod · 0.65
disposeMethod · 0.65

Tested by

no test coverage detected