wantNormals

wantNormals: boolean | undefined

Controls whether normals are generated for surfaces. Normals allow 3d geometry to receive lighting; without them the geometry will be unaffected by lighting. By default, normals are generated only for graphics of type GraphicType.Scene; or for any type of graphic if wantEdges is true, because normals are required to prevent z-fighting between surfaces and their edges. This default can be overridden by explicitly specifying true or false.

@see GraphicType for a description of whether and how different types of graphics are affected by lighting.

Defined in

Last Updated: 21 November, 2024