Skip to content

Commit

Permalink
add some documentation on the parameter 'silent' in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiomeCG committed Jun 1, 2023
1 parent 61623af commit e6cce06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function Box() {
baseMaterial: THREE.MeshPhysicalMaterial,
vertexShader: /* glsl */ ` ... `,
fragmentShader: /* glsl */ ` ... `,
silent: true, // Disables the default warning if true
uniforms: {
uTime: {
value: 0,
Expand Down Expand Up @@ -83,6 +84,8 @@ function Cube() {
baseMaterial={THREE.MeshPhysicalMaterial}
vertexShader={/* glsl */ ` ... `}
fragmentShader={/* glsl */ ` ... `}
{/*silent parameter to true disables the default warning if needed*/}
silent
uniforms={{
uTime: {
value: 0,
Expand Down

0 comments on commit e6cce06

Please sign in to comment.