Global Command: shaderCompile

From The Official Visionaire Studio: Adventure Game Engine Wiki
Revision as of 11:30, 19 May 2023 by EK (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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...]])