Companion

object Companion

Properties

Link copied to clipboard

The maximum number of shader locations. This will always be the size of locs.

Functions

Link copied to clipboard
fun load(fileName: String): Shader

Loads a shader from the given single file containing both vertex and fragment shaders.

fun load(vsFileName: String, fsFileName: String): Shader

Loads a shader from the given vertex and fragment shader file names.

Link copied to clipboard
fun loadInMemory(vsCode: String, fsCode: String): Shader

Loads a shader from the given vertex and fragment shader code in memory.