vgl
- Source:
Classes
- GL
- actor
- blend
- blendFunction
- boundingObject
- camera
- data
- floatUniform
- geometryData
- graphicsObject
- groupNode
- lookupTable
- mapper
- material
- materialAttribute
- modelViewUniform
- node
- object.
- points
- primitive
- projectionUniform
- renderState
- renderWindow
- renderer
- shader
- shaderProgram
- sourceData
- sourceDataAnyfv
- sourceDataP3fv
- sourceDataT2fv
- texture
- triangles
- uniform
- vertexAttribute
- viewer
Methods
(static) clearCachedShaders(context)
- Description:
Clear the shader cache.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
context |
WebGLRenderingContext | The GL context to clear, or null for clear all. |
(static) getCachedShader(type, context, source) → {number}
- Description:
Get a shader from the cache. Create a new shader if necessary using a specific source.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
type |
number | One of vgl.GL.*_SHADER |
context |
WebGLRenderingContext | The GL context for the shader. |
source |
string | The source code of the shader. |
Returns:
GL shader handle
- Type
- number