Three.js重复模式

时间:2014-04-15 14:13:43

标签: javascript opengl-es three.js webgl

如您所知,在three.js中有3种包装模式

THREE.RepeatWrapping
THREE.ClampToEdgeWrapping
THREE.MirroredRepeatWrapping

但在OpenGL中,有4种模式。

Link to image

我需要OpenGL中名为GL_CLAMP_TO_BORDER的重复模式才能在Three.js中使用。如何在three.js中实现新的重复模式以提供此功能?

PS。我知道consts值1000 - 1003但最后一个不是1004

1 个答案:

答案 0 :(得分:1)

“OGL ES(WebGL)不支持CLAMP_TO_BORDER。” Source