cginternals / webgl-operate

A TypeScript based WebGL rendering framework.
https://webgl-operate.org
MIT License
166 stars 25 forks source link

Texture3D wrap_r parameter is assigned to TEXTURE_WRAP_T #252

Closed lukaswagner closed 3 years ago

lukaswagner commented 4 years ago

When setting the wrap mode for a 3D texture, the parameter for r is applied to TEXTURE_WRAP_T. This means it is not correctly used for wrapping depth coordinates, but also overwrites the parameter previously specified for height wrapping.

https://github.com/cginternals/webgl-operate/blob/c8fa49d4da11a13d17bb1fd88a64f4695c94701d/source/texture3d.ts#L279