Global Command: shaderCompile
From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected from ShaderCompile)
Compile a shader.
| Related functions | shaderSetOptions | shaderUniform |
Syntax
shaderCompile(code [, fs])
Parameters
GLSL code can only be used if using OpenGL.
| Parameter | Type | Description |
|---|---|---|
| code | string | Vertex shader code(?). |
| fs | string | Fragment shader(?). |
Return values
none
Examples
Example 1:
int num = shaderCompile([[VSCBIN...]])