Skip to content

Commit 4210117

Browse files
committed
Cleaned up docs/ShaderMaterial.
1 parent 21ef29e commit 4210117

2 files changed

Lines changed: 12 additions & 22 deletions

File tree

docs/api/materials/ShaderMaterial.html

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,40 +14,31 @@ <h1>[name]</h1>
1414
<div class="desc">Material rendered with custom shaders</div>
1515

1616

17-
<h2>Constructor</h2>
18-
17+
<h2>Example</h2>
1918

20-
<h3>[name]([page:Object parameters])</h3>
21-
<div>
22-
parameters -- An object containing various parameters setting up shaders and their uniforms.
23-
</div>
24-
<div>
25-
<br>
26-
Example:<br>
27-
<br>
28-
<pre>
2919
<code>
30-
uniforms = {
31-
time: { type: "f", value: 1.0 },
32-
resolution: { type: "v2", value: new THREE.Vector2() }
33-
};
34-
35-
material = new THREE.ShaderMaterial( {
20+
var material = new THREE.ShaderMaterial( {
3621

37-
uniforms: uniforms,
22+
uniforms: {
23+
time: { type: "f", value: 1.0 },
24+
resolution: { type: "v2", value: new THREE.Vector2() }
25+
},
3826
vertexShader: document.getElementById( 'vertexShader' ).textContent,
3927
fragmentShader: document.getElementById( 'fragmentShader' ).textContent
4028

4129
} );
4230
</code>
43-
</pre>
4431

45-
</div>
4632

33+
<h2>Constructor</h2>
4734

48-
<h2>Properties</h2>
35+
<h3>[name]([page:Object parameters])</h3>
36+
<div>
37+
parameters -- An object containing various parameters setting up shaders and their uniforms.
38+
</div>
4939

5040

41+
<h2>Properties</h2>
5142

5243
<h3>.[page:object uniforms]</h3>
5344
<div>

src/extras/helpers/BoxHelper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ THREE.BoxHelper.prototype.update = function ( object ) {
3232
var min = geometry.boundingBox.min;
3333
var max = geometry.boundingBox.max;
3434

35-
3635
/*
3736
5____4
3837
1/___0/|

0 commit comments

Comments
 (0)