GLSLSource

GLSLSource class

The source code of shaders in GLSL

Methods

constructor

NameDescription
constructor()

Result:


getComputeShader

NameDescription
getComputeShader()Gets or sets the source code of the compute shader.

Result:


setComputeShader

NameDescription
setComputeShader(value)Gets or sets the source code of the compute shader.

Result:


getGeometryShader

NameDescription
getGeometryShader()Gets or sets the source code of the geometry shader.

Result:


setGeometryShader

NameDescription
setGeometryShader(value)Gets or sets the source code of the geometry shader.

Result:


getVertexShader

NameDescription
getVertexShader()Gets or sets the source code of the vertex shader

Result:


setVertexShader

NameDescription
setVertexShader(value)Gets or sets the source code of the vertex shader

Result:


getFragmentShader

NameDescription
getFragmentShader()Gets or sets the source code of the fragment shader.

Result:


setFragmentShader

NameDescription
setFragmentShader(value)Gets or sets the source code of the fragment shader.

Result:


defineInclude

NameDescription
defineInclude(fileName, content)Define virtual file for #include in GLSL source code

Parameters:

NameTypeDescription
fileNameStringFile name of the virtual file
contenStringnull

Result: