We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9495b35 commit bbd747fCopy full SHA for bbd747f
libs/soba/shaders/src/shader-material/shader-material.ts
@@ -33,10 +33,8 @@ export function shaderMaterial<
33
super({
34
uniforms: entries.reduce((acc, [name, value]) => {
35
const uniform = THREE.UniformsUtils.clone({ [name]: { value } });
36
- return {
37
- ...acc,
38
- ...uniform,
39
- };
+ Object.assign(acc, uniform);
+ return acc;
40
}, {}),
41
vertexShader,
42
fragmentShader,
0 commit comments