MaterialCullingMode

Specifies the face culling mode used when rendering a material.

Face culling determines which triangle faces are discarded during the rendering pass, optimizing performance by avoiding unnecessary fragment processing. The culling decision is based on the triangle's winding order relative to the camera's viewpoint.

Default: BACK.

Entries

Link copied to clipboard

Disables face culling.

Link copied to clipboard

Culls front-facing triangles.

Link copied to clipboard

Culls back-facing triangles.

Link copied to clipboard

Culls both front- and back-facing triangles.

Link copied to clipboard

Reserved value for forward compatibility.

Properties

Link copied to clipboard
val entries: EnumEntries<MaterialCullingMode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val value: Int

The integer value of the culling mode.

Functions

Link copied to clipboard
fun valueOf(value: String): MaterialCullingMode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.