Skip to content

Commit fa8190c

Browse files
author
takuma-hmng8
committed
readme修正
1 parent 54812eb commit fa8190c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,7 @@ useAddMesh(scene, geometry, material);
161161
A function to set values in the uniforms of the shader material.
162162

163163
```js
164-
const setUniform = (material, key, value) => {
165-
material.uniforms[key].value = value;
166-
};
164+
setUniform(material, "key", someValue);
167165
```
168166

169167
## useParams

0 commit comments

Comments
 (0)