According to OpenGL - Textures threre are 4 modes, but Babylon does not support
#define GL_CLAMP_TO_BORDER 0x812D <==== what I need
#define GL_CLAMP_TO_EDGE 0x812F
#define GL_MIRRORED_REPEAT 0x8370
#define GL_REPEAT 0x2901
On my OSM streeds are direction arrows.
The right one goes to the border and causes side effekts according to GL_CLAMP_TO_EDGE
(The left one needed a transparent 32 pixel border to be ok)
So I “manipulated” babylon.max.js, added TEXTURE_BORDER_ADDRESSMODE = 4 and
return 0x812D; // there is no _gl.CLAMP_TO_BORDER !!!
But now, I got Error: WebGL warning: texParameter: pname 0x2803: Invalid param 0x812d.
ThreeJS also does NOT support it.
If WebGL does support it, BJS schould do it too please.
I read in the web, using GL_CLAMP_TO_EDGE and set borderColor would do it to. But there is no borderColor in BJS, is there?