Class SpiderGL.WebGL.FragmentShader
The SpiderGL.WebGL.FragmentShader is a WebGLShader wrapper for fragment shaders.
- Defined in: webgl.js
- Extends SpiderGL.WebGL.Shader
Constructor Attributes | Constructor Name and Description |
---|---|
SpiderGL.WebGL.FragmentShader(gl, options)
Creates a SpiderGL.WebGL.FragmentShader.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
SpiderGL.WebGL.FragmentShader.TARGET
Dummy WebGL target for fragment shaders.
|
- Fields borrowed from class SpiderGL.WebGL.Shader:
- autoCompile, isCompiled, isReady, log, source
- Fields borrowed from class SpiderGL.WebGL.ObjectGL:
- gl, handle, isValid, target
- Fields borrowed from class SpiderGL.Core.ObjectBase:
- uid
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
SpiderGL.WebGL.FragmentShader.unbind(gl)
Dummy fragment shader unbinding.
|
- Methods borrowed from class SpiderGL.WebGL.Shader:
- bind
- compile
- destroy
- setSource
Class Detail
SpiderGL.WebGL.FragmentShader(gl, options)
Creates a SpiderGL.WebGL.FragmentShader.
SpiderGL.WebGL.FragmentShader represents a wrapper for a WebGLShader whose type is type WebGLRenderingContext.FRAGMENT_SHADER.
- Parameters:
- {WebGLRenderingContext} gl
- A WebGLRenderingContext hijacked with SpiderGL.WebGL.Context.hijack.
- {object} options Optional
- See SpiderGL.WebGL.Shader.
Field Detail
<static>
{number}
SpiderGL.WebGL.FragmentShader.TARGET
Dummy WebGL target for fragment shaders.
It is equal to WebGLRenderingContext.NONE and is provided only for completeness with other WebGL wrappers.
- Default Value:
- WebGLRenderingContext.NONE
Method Detail
-
<static> SpiderGL.WebGL.FragmentShader.unbind(gl)Dummy fragment shader unbinding. This function does nothing and it is provided only for simmetry with other wrappers.
- Parameters:
- {WebGLRenderingContext} gl
- A WebGLRenderingContext.