Syntax

dbAddStaticScorch(ScorchSize.f, ScorchType)

Description

This command will add an individual blob of scorch into the static universe set-up previously with a call to dbSetStaticScorch before the main loop begins. The scorch will appear at the position and orientation of the last raycast that happened in the static universe. The trick is to cast a ray into the scene, and where-ever that ray hits will be the location of the scorch, ideal for surface normals which may not be easy to calculate.

Scorch Size

Specifies the size of the scorch for the scene, measured in standard 3D units


Scorch Type

Specifies an index between zero and the number of scorch tiles within your main texture image. If the scorch was set up as a 4x4 grid of images, your range would be 0 to 15.

See Also

dbSetStaticScorch, dbStaticRayCast