ShaderExists

Family: 3D · One form

What it does

ShaderExists reads from a 3D object without changing it. It takes shaderID (an integer), and answers an integer. shaderID is the id of a Shader object, the one LoadShader returned: it is how the call knows what to act on.

Syntax

ShaderExists(shaderID integer) → integer

Parameters

NameType
shaderIDinteger

Every form returns

integer

Example · generated

shader = LoadShader("assets/data.dat", "assets/data.dat")DO  Print(ShaderExists(shader))  Sync()LOOP

LoadShader is there to give the call something to act on; ShaderExists is the line that matters. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

286 commands in 3D