Browse Source

Update ShaderMaterial.html

Example code should be in a `code` element.
Ray 11 năm trước cách đây
mục cha
commit
de7af126ec
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      docs/api/materials/ShaderMaterial.html

+ 4 - 0
docs/api/materials/ShaderMaterial.html

@@ -25,6 +25,8 @@
 		<br>
 		Example:<br>
 		<br>
+		<pre>
+		<code>
 		uniforms = {
 			time: { type: "f", value: 1.0 },
 			resolution: { type: "v2", value: new THREE.Vector2() }
@@ -37,6 +39,8 @@
 			fragmentShader: document.getElementById( 'fragmentShader' ).textContent
 
 		} );
+		</code>
+		</pre>
 
 		</div>