Skip to content

Commit bbd747f

Browse files
committed
refactor(soba): adjust shader material to not spread on uniforms
1 parent 9495b35 commit bbd747f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libs/soba/shaders/src/shader-material/shader-material.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ export function shaderMaterial<
3333
super({
3434
uniforms: entries.reduce((acc, [name, value]) => {
3535
const uniform = THREE.UniformsUtils.clone({ [name]: { value } });
36-
return {
37-
...acc,
38-
...uniform,
39-
};
36+
Object.assign(acc, uniform);
37+
return acc;
4038
}, {}),
4139
vertexShader,
4240
fragmentShader,

0 commit comments

Comments
 (0)