GLSLSource
Contents
[
Hide
]GLSLSource class
The source code of shaders in GLSL
Methods
constructor
| Name | Description |
|---|---|
| constructor() |
Result:
getComputeShader
| Name | Description |
|---|---|
| getComputeShader() | Gets or sets the source code of the compute shader. |
Result:
setComputeShader
| Name | Description |
|---|---|
| setComputeShader(value) | Gets or sets the source code of the compute shader. |
Result:
getGeometryShader
| Name | Description |
|---|---|
| getGeometryShader() | Gets or sets the source code of the geometry shader. |
Result:
setGeometryShader
| Name | Description |
|---|---|
| setGeometryShader(value) | Gets or sets the source code of the geometry shader. |
Result:
getVertexShader
| Name | Description |
|---|---|
| getVertexShader() | Gets or sets the source code of the vertex shader |
Result:
setVertexShader
| Name | Description |
|---|---|
| setVertexShader(value) | Gets or sets the source code of the vertex shader |
Result:
getFragmentShader
| Name | Description |
|---|---|
| getFragmentShader() | Gets or sets the source code of the fragment shader. |
Result:
setFragmentShader
| Name | Description |
|---|---|
| setFragmentShader(value) | Gets or sets the source code of the fragment shader. |
Result:
defineInclude
| Name | Description |
|---|---|
| defineInclude(fileName, content) | Define virtual file for #include in GLSL source code |
Parameters:
| Name | Type | Description |
|---|---|---|
| fileName | String | File name of the virtual file |
| conten | String | null |
Result: