cullFaces(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
cullFaces(val : Z.CullFaces) : this;
Sets the type of culling to perform for this object.
Default value: Z.CullFaces.inherit
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | Z.CullFaces | The value to set. |
Returns
Section titled “Returns”this
Example
Section titled “Example”myobject.cullFaces(Z.CullFaces.none);// All faces in myobject will be drawn, even if they face away from the camera