@@ -123,15 +123,15 @@ export class NgtsVolumetricMesh {
123
123
}
124
124
}
125
125
126
- function injectSpotLightCommon (
126
+ function spotLightCommon (
127
127
spotLight : ( ) => ElementRef < THREE . SpotLight > | null ,
128
128
mesh : ( ) => ElementRef < Mesh > | null ,
129
129
width : ( ) => number ,
130
130
height : ( ) => number ,
131
131
distance : ( ) => number ,
132
132
injector ?: Injector ,
133
133
) {
134
- assertInjector ( injectSpotLightCommon , injector , ( ) => {
134
+ assertInjector ( spotLightCommon , injector , ( ) => {
135
135
const pos = new THREE . Vector3 ( ) ;
136
136
const dir = new THREE . Vector3 ( ) ;
137
137
@@ -261,7 +261,7 @@ export class NgtsSpotLightShadowShader {
261
261
constructor ( ) {
262
262
extend ( { Mesh, PlaneGeometry, MeshBasicMaterial } ) ;
263
263
264
- injectSpotLightCommon ( this . spotLight . spotLightRef , this . meshRef , this . width , this . height , this . distance ) ;
264
+ spotLightCommon ( this . spotLight . spotLightRef , this . meshRef , this . width , this . height , this . distance ) ;
265
265
266
266
effect ( ( ) => {
267
267
this . uniforms . uShadowMap . value = this . map ( ) ;
@@ -338,7 +338,7 @@ export class NgtsSpotLightShadowNoShader {
338
338
constructor ( ) {
339
339
extend ( { Mesh, PlaneGeometry, MeshBasicMaterial } ) ;
340
340
341
- injectSpotLightCommon ( this . spotLight . spotLightRef , this . meshRef , this . width , this . height , this . distance ) ;
341
+ spotLightCommon ( this . spotLight . spotLightRef , this . meshRef , this . width , this . height , this . distance ) ;
342
342
}
343
343
}
344
344
0 commit comments