Explorar o código

Merge pull request #587 from philnichols/main

docs(cookbook): Update shaders.md
Jaime A Torrealba C hai 1 ano
pai
achega
28a482b587
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
-```
+```