ShaderOptions
Index
Properties
fragmentSource
graphicsContext
ExcaliburGraphicsContextWebGL this layout will be attached to, these cannot be reused across webgl contexts.
optionalimages
Set initial images as uniform sampler2D
optionalname
Optionally provide a name for the shader (useful for debugging purposes)
optionalonPostCompile
Callback to fire directly after the progam has finished compiling
Type declaration
Callback to fire directly after the progam has finished compiling
Parameters
shader: Shader
Returns void
optionalonPreLink
Callback to fire directly before linking the program
Type declaration
Callback to fire directly before linking the program
Parameters
program: WebGLProgram
Returns void
optionalstartingTextureSlot
Optionally set the starting texture slot, default 0
optionaluniforms
Set initial uniforms
vertexSource
Vertex shader source code in glsl #version 300 es
Fragment shader source code in glsl #version 300 es