Skip to main content

ShaderOptions

Index

Properties

fragmentSource

fragmentSource: string

Fragment shader source code in glsl #version 300 es

gl

gl: WebGL2RenderingContext

WebGL2RenderingContext this layout will be attached to, these cannot be reused across webgl contexts.

optionalonPostCompile

onPostCompile?: (shader: Shader) => void

Type declaration

optionalonPreLink

onPreLink?: (program: WebGLProgram) => void

Type declaration

    • (program: WebGLProgram): void
    • Parameters

      • program: WebGLProgram

      Returns void

vertexSource

vertexSource: string

Vertex shader source code in glsl #version 300 es