Pergunta

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

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top