WebGLRenderingContext: frontFace() Methode
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die WebGLRenderingContext.frontFace()
Methode der WebGL API legt fest, ob Polygone vorder- oder rückseitig sind, indem eine Wicklungsrichtung eingestellt wird.
Syntax
js
frontFace(mode)
Parameter
Rückgabewert
Keiner (undefined
).
Beispiele
js
gl.frontFace(gl.CW);
Spezifikationen
Specification |
---|
WebGL Specification # 5.14.3 |