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) → integerParameters
| Name | Type |
|---|---|
| shaderID | integer |
Every form returns
integer
Example · generated
shader = LoadShader("assets/data.dat", "assets/data.dat")DO Print(ShaderExists(shader)) Sync()LOOPLoadShader 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.