Skip to content

Kiln API / kiln / RenderOptions

Interface: RenderOptions ​

Properties ​

PropertyTypeDescription
background?ColorRepresentation | nullClear colour. Default 0x1a1d23.
lights?booleanAmbient + directional light in 3D. Default true.
antialias?boolean-
fov?numberPerspective field of view in degrees. Default 60.
cameraPosition?[number, number, number]Initial camera position in 3D. Default [0, 10, 14], looking at the origin.
viewHeight?numberWorld units visible vertically in 2D. Default 20.
maxPixelRatio?numberCap on devicePixelRatio. Default 2.
forceWebGL?booleanForce the WebGL2 backend (kiln shot uses this when WebGPU is unavailable).