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

Load a shader with vertex and fragment code file url.

since

// load only a fragment shader from URL
loadShader("outline", null, "/shaders/outline.glsl", true)
kaplay logo

Misc