FrontFace

View source

Defines the winding direction that WebGL treats as front-facing.

Pass a member to WebGLRenderingContext#frontFace when the vertex winding of the mesh changes.

Examples

import { FrontFace } from '@wimaengine/render-webgl'

gl.frontFace(FrontFace.CounterClockWise)

Variants


ClockWise

View source

Treats clockwise polygons as front-facing (0x0900).

CounterClockWise

View source

Treats counter-clockwise polygons as front-facing (0x0901).