是否有可能创建自定义半径的three.js圆角立方体,然后才能纹理立方体的形象?
Is it possible to create a cube with rounded corners of custom radius in three.js and then be able to texture that cube with an image?
您可以绕行中实现的Loop细分算法 THREE.SubdivisionModifier
立方体的角落。
You can round the corners of a cube using the Loop subdivision algorithm implemented in THREE.SubdivisionModifier
.
这是在行动: http://threejs.org/examples/webgl_modifier_subdivision.html。
您可以纹理这种几何形状就像你纹理任何其它几何形状。
You can texture this geometry just as you would texture any other geometry.
three.js R.70
three.js r.70