三.js 翻转属性 [英] Three.js flipSided property
问题描述
我似乎在材料文档中找不到 flipSided 属性.
I can't seem to find the flipSided property in the documentation for material.
我有一个有 2 个边的网格,但我想翻转它的边.
I have a mesh that has 2 sides but I would like to flip it's sides.
有谁知道那处房产去了哪里?
Does anyone know where that property went?
为了澄清我的意思是翻转一个两侧物体的侧面.
To clarify I meant to flip the sides of a two sided object.
推荐答案
查看 迁移指南以帮助您升级到当前版本.您会在那里找到以下内容:
See the Migration Guide for help upgrading to the current version. There you will find the following:
doubleSided
/flipSided
属性从 Object3D
移动到 Material
的 side
属性(THREE.FrontSide
、THREE.BackSide
和 THREE.DoubleSide
).
doubleSided
/ flipSided
properties moved from Object3D
to Material
's side
property (THREE.FrontSide
, THREE.BackSide
and THREE.DoubleSide
).
例如
material.side = THREE.BackSide;
three.js r.62 - r.109
three.js r.62 - r.109
这篇关于三.js 翻转属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!