magic-pixels
    Preparing search index...

    Function createShaderMaterial

    • Create a material from GLSL sources.

      Parameters

      • vertexShader: string = defaultVertexShader

        GLSL vertex shader (defaults to the built-in one)

      • fragmentShader: string = defaultFragmentShader

        GLSL fragment shader (defaults to the built-in one)

      • uniforms: Uniforms = {}

        initial uniform values

      • drawMode: DrawMode = DrawMode.TRIANGLES

        primitive type, DrawMode.TRIANGLES by default

      Returns Material