Skip to content

createInstancesScene

createInstancesScene(): DemoScene

Defined in: addons/src/scenes/InstancesScene.ts:47

One geometry, gem(), in four instances that share its BVH, and a floor, a back wall and a lamp. The first instance is placed as it is. The second is scaled by (1.6, 0.7, 1) under a turn, so its world matrix has columns of different lengths that stay at right angles (a non-uniform scale, and no shear). The third is scaled by -1 along x, so its matrix has a negative determinant and it must still shade outward. The fourth is a mirror. It is the instances scene of the differential gate (design record 0002).

DemoScene