Skip to main content

GLDrawCreateShader

Callable

  • GLDrawCreateShader(gl: WebGL2RenderingContext, source: string, type: number): WebGLShader

  • Creates a shader for the current WebGL context from a given source


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • source: string

      Source of the shader to create

    • type: number

      The type of the shader to create

    Returns WebGLShader

    • The created WebGL shader