Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以将纹理应用于网格而不在 three.js 中指定几何图形中的 UV?
有诸如 THREE.CubeGeometry、THREE.SphereGeometry 等类会自动为您生成 UV 坐标。但是,如果您是从头开始创建自己的几何体(即指定顶点位置、创建面等),那么答案是否定的。您需要在创建几何体时手动设置 UV 坐标,或者您需要编写一个自定义着色器来确定任何给定点的 UV 坐标。这样想:如果不指定 UV 坐标,几何体上的点不知道它们应该显示纹理上的哪个点。