Type:Culling

From Resonite Wiki
Revision as of 14:24, 27 July 2025 by .hecko (talk | contribs)
Enum
Name: Culling
Type: FrooxEngine.Culling

The Culling type is an Enum that defines how faces should be culled (skippedduring rendering) based on their direction relative to the camera.

This type is present in some materials (e.g. XiexeToon), but not others (e.g. PBS). Some other materials (e.g. UI Unlit) use a similar type called Sidedness, which instead defines which sides should be rendered instead of skipped. For materials that have neither, an equivalent effect can be achieved with the Reverse Winding and Make Dual Sided buttons on the relevant StaticMesh.

The default for most meshes is Back, meaning that faces facing away from the camera aren't rendered. This is an optimization technique known as wikipedia:back-face culling, which works on the assumption that most meshes are intended to be solid objects and thus the back faces will be completely covered by the front faces.

The Front setting makes objects appear inside-out. (Imported 360° photos use the Back setting of the Sidedness type for the same result.) It can also be used for an outline effect when applied to a slightly inflated copy of a mesh.

Values
Name Value Description
Off 0 Faces are never culled based on direction.
Front 1 Faces facing the camera are culled.
Back 2 Faces facing away from the camera are culled.

See Also