GLShader.newFromResource

gsk.glshader.GLShader newFromResource(string resourcePath)

Creates a [gsk.glshader.GLShader] that will render pixels using the specified code.

Parameters

resourcePathpath to a resource that contains the GLSL sourcecode for the shader

Returns

A new [gsk.glshader.GLShader]