Skip to content

Commit 75897e6

Browse files
chore(lint): reformat to avoid linter error (#533)
Co-authored-by: Alvaro Saburido <[email protected]>
1 parent f622324 commit 75897e6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/core/staging/ContactShadows.vue

+5-6
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,11 @@ function setColors(ps: typeof props, pool: ReturnType<typeof init>) {
310310
pool.depthMaterial.onBeforeCompile = function (shader) {
311311
const tint = ps.tint ? new Color(ps.tint as ColorRepresentation) : new Color('white')
312312
const { r, g, b } = tint
313-
shader.fragmentShader = /* glsl */`
314-
${shader.fragmentShader.replace(
315-
'gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );',
316-
`gl_FragColor = vec4( ${r}, ${g}, ${b}, ( 1.0 - fragCoordZ ) * opacity);`,
317-
)}
318-
`
313+
const fragmentShader = shader.fragmentShader.replace(
314+
'gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );',
315+
`gl_FragColor = vec4( ${r}, ${g}, ${b}, ( 1.0 - fragCoordZ ) * opacity);`,
316+
)
317+
shader.fragmentShader = fragmentShader
319318
}
320319
}
321320

0 commit comments

Comments
 (0)