loadShaderURL(name: string | null, vert?: string | null, frag?: string | null): Asset<ShaderData>

Load a shader with vertex and fragment code file url.

paramname- The name of the asset.

paramvert- The vertex shader code. Null if not needed.

paramfrag- The fragment shader code. Null if not needed.

// load only a fragment shader from URL
loadShaderURL("outline", null, "/shaders/outline.glsl")

retunrsThe asset data.

sincev3000.0

kaplay logo

Misc

Layer