Shader.this

Constructs a new shader of the specified type, using as source code the file pointed to by sourcePath

class Shader
this

Parameters

type Shader.Type

Type of the shader to be constructed

sourcePath string

String representing a path to a file containing the source code which will be used as source for the constructed shader

Meta