FragmentShader class base
Instances of this class can be obtained from the FragmentProgram.fragmentShader method. The float uniforms list is initialized to the size expected by the shader and is zero-filled. Uniforms of float type can then be set by calling setFloat. Sampler uniforms are set by calling setImageSampler.
A FragmentShader can be re-used, and this is an efficient way to avoid allocating and re-initializing the uniform buffer and samplers. However, if two FragmentShader objects with different float uniforms or samplers are required to exist simultaneously, they must be obtained from two different calls to FragmentProgram.fragmentShader.
) → void
Releases the native resources held by the FragmentShader.
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
int index, double value) → void
Sets the float uniform at
int index, Image image) → void
Sets the sampler uniform at
) → String
A string representation of this object.