|
@@ -105,28 +105,31 @@
|
|
|
|
|
|
<h2>Constructor</h2>
|
|
|
|
|
|
- <h3>[name]( [param:WebGLRenderer renderer], [param:Object code], [param:Material material], [param:Object parameters] )</h3>
|
|
|
- <p>For parameters see [page:WebGLRenderer WebGLRenderer]</p>
|
|
|
+ <h3>[name]( [param:WebGLRenderer renderer], [param:String cacheKey], [param:Object parameters] )</h3>
|
|
|
+ <p>For parameters see [page:WebGLRenderer WebGLRenderer].</p>
|
|
|
|
|
|
<h2>Properties</h2>
|
|
|
|
|
|
+ <h3>[property:String name]</h3>
|
|
|
+ <p>The name of the respective shader program.</p>
|
|
|
+
|
|
|
<h3>[property:String id]</h3>
|
|
|
- <p></p>
|
|
|
+ <p>The identifier of this instance.</p>
|
|
|
|
|
|
- <h3>[property:String code]</h3>
|
|
|
- <p></p>
|
|
|
+ <h3>[property:String cacheKey]</h3>
|
|
|
+ <p>This key enables the reusability of a single [name] for different materials.</p>
|
|
|
|
|
|
<h3>[property:Integer usedTimes]</h3>
|
|
|
- <p></p>
|
|
|
+ <p>How many times this instance is used for rendering render items.</p>
|
|
|
|
|
|
<h3>[property:Object program]</h3>
|
|
|
- <p></p>
|
|
|
+ <p>The actual shader program.</p>
|
|
|
|
|
|
<h3>[property:WebGLShader vertexShader]</h3>
|
|
|
- <p></p>
|
|
|
+ <p>An instance of [page:WebGLShader] representing the vertex shader.</p>
|
|
|
|
|
|
<h3>[property:WebGLShader fragmentShader]</h3>
|
|
|
- <p></p>
|
|
|
+ <p>An instance of [page:WebGLShader] representing the frament shader.</p>
|
|
|
|
|
|
<h2>Methods</h2>
|
|
|
|
|
@@ -140,6 +143,11 @@
|
|
|
Returns a name-value mapping of all active vertex attribute locations.
|
|
|
</p>
|
|
|
|
|
|
+ <h3>[method:null destroy]()</h3>
|
|
|
+ <p>
|
|
|
+ Destroys an instance of [name].
|
|
|
+ </p>
|
|
|
+
|
|
|
<h2>Source</h2>
|
|
|
|
|
|
<p>
|