Three.js flipSided property

此生再无相见时 提交于 2019-12-13 17:14:24

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/19673913/three-js-flipsided-property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!