@@ -123,15 +123,15 @@ export class NgtsVolumetricMesh {
123123 }
124124}
125125
126- function injectSpotLightCommon (
126+ function spotLightCommon (
127127 spotLight : ( ) => ElementRef < THREE . SpotLight > | null ,
128128 mesh : ( ) => ElementRef < Mesh > | null ,
129129 width : ( ) => number ,
130130 height : ( ) => number ,
131131 distance : ( ) => number ,
132132 injector ?: Injector ,
133133) {
134- assertInjector ( injectSpotLightCommon , injector , ( ) => {
134+ assertInjector ( spotLightCommon , injector , ( ) => {
135135 const pos = new THREE . Vector3 ( ) ;
136136 const dir = new THREE . Vector3 ( ) ;
137137
@@ -261,7 +261,7 @@ export class NgtsSpotLightShadowShader {
261261 constructor ( ) {
262262 extend ( { Mesh, PlaneGeometry, MeshBasicMaterial } ) ;
263263
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 ) ;
265265
266266 effect ( ( ) => {
267267 this . uniforms . uShadowMap . value = this . map ( ) ;
@@ -338,7 +338,7 @@ export class NgtsSpotLightShadowNoShader {
338338 constructor ( ) {
339339 extend ( { Mesh, PlaneGeometry, MeshBasicMaterial } ) ;
340340
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 ) ;
342342 }
343343}
344344
0 commit comments