FluxWareScripting
Back to site

render3d

World-space drawing, valid only inside a render3d handler. Absolute world coordinates; colours are 0xAARRGGBB, and an alpha of zero skips that pass.

Functions

6 functions. Signatures are generated from the client, so they describe the build you are running.

render3d.box(minX:number, minY:number, minZ:number, maxX:number, maxY:number, maxZ:number, fillColor:number, outlineColor:number)
render3d.blockBox(x:number, y:number, z:number, fillColor:number, outlineColor:number)

The unit cube at a block position.

render3d.line(x1:number, y1:number, z1:number, x2:number, y2:number, z2:number, color:number)
render3d.tracer(x:number, y:number, z:number, color:number)

From just below the camera to a world point.

render3d.entityBox(e:Entity, fillColor:number, outlineColor:number)
render3d.worldToScreen(x:number, y:number, z:number) -> sx:number, sy:number|nil

nil when the point is behind the camera or off the near/far planes. Safe to call from a render2d handler, which is where the result is usually wanted.