Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 905dd33

Browse files
committed
refactor(soba/staging): rename injectSpotLightCommon to spotLightCommon
1 parent 3af613a commit 905dd33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libs/soba/staging/src/lib/spot-light.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)