Category: Shaders
Syntax:
b2dSetShaderFloat2:Void(shader:Int, name:String, x:Double, y:Double)
Void
Sets two floating-point parameters at once.
Takes shader, name (the slot number of the FIRST value, as a string) and x, y.
Returns nothing.
The values fill CONSECUTIVE slots - naming slot "4" writes slots 4 and 5, so the next free slot is 6. name is a parameter SLOT NUMBER given as a string - "0" through "63". It is read with the equivalent of atoi(), so a descriptive name such as "intensity" is not looked up: it parses as 0 and lands in slot 0. In the shader the slots are params[0..63], also available as param0 through param63.
View detailed documentation online
b2dSetShaderFloat2(crt, "4", 640.0, 480.0) ; params[4], params[5]
BambooBasic © 2026 Michael Denathorn