Bläddra i källkod

Update shaders.md

Appropriate TresShaderMaterial properties added to example code.
philnichols 1 år sedan
förälder
incheckning
f4ee957845
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      docs/cookbook/shaders.md

+ 2 - 2
docs/cookbook/shaders.md

@@ -134,7 +134,7 @@ const blobRef = shallowRef(null)
       :position="[0, 4, 0]"
     >
       <TresSphereGeometry :args="[2, 32, 32]" />
-      <TresShaderMaterial />
+      <TresShaderMaterial :vertexShader="vertexShader" :fragmentShader="fragmentShader" :uniforms="uniforms"/>
     </TresMesh>
   </TresCanvas>
 </template>
@@ -171,4 +171,4 @@ And you could have a structure similar to this:
 │   ├── shaders/
 │       ├── vertexShader.glsl
 │       ├── fragmentShader.glsl
-```
+```