Recur
Recur

Reputation: 1428

Three.js flipSided property

I can't seem to find the flipSided property in the documentation for material.

I have a mesh that has 2 sides but I would like to flip it's sides.

Does anyone know where that property went?

Edit: To clarify I meant to flip the sides of a two sided object.

Upvotes: 1

Views: 1174

Answers (1)

WestLangley
WestLangley

Reputation: 104843

See the Migration Guide for help upgrading to the current version. There you will find the following:

doubleSided / flipSided properties moved from Object3D to Material's side property (THREE.FrontSide, THREE.BackSide and THREE.DoubleSide).

For example,

material.side = THREE.BackSide;

three.js r.62 - r.109

Upvotes: 2

Related Questions