loadShaderURL(name: string | null, vert?: string | null, frag?: string | null): Asset<ShaderData>
Load a shader with vertex and fragment code file url.
param
name- The name of the asset.
param
vert- The vertex shader code. Null if not needed.
param
frag- The fragment shader code. Null if not needed.
// load only a fragment shader from URL loadShaderURL("outline", null, "/shaders/outline.glsl")
retunrs
The asset data.
since
v3000.0