三.js 翻转属性 [英] Three.js flipSided property

查看:23
本文介绍了三.js 翻转属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎在材料文档中找不到 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 移动到 Materialside属性(THREE.FrontSideTHREE.BackSideTHREE.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆