As you may know, in three.js there are 3 wrapping modes

THREE.RepeatWrapping
THREE.ClampToEdgeWrapping
THREE.MirroredRepeatWrapping

But in OpenGL, there are 4 modes.

Link to image

I need the repeat mode from OpenGL called GL_CLAMP_TO_BORDER to be available in Three.js. How do I implement a new repeat mode in three.js to provide this functionality?

PS. I know about consts value its 1000 - 1003 but the last one it not 1004

有帮助吗?

解决方案

"CLAMP_TO_BORDER is not supported on OGL ES (WebGL)." Source.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top