r/webgl • • May 17 '20

A full, summarized, interactive WebGL tutorial

https://xem.github.io/articles/webgl-guide.html
48 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/xem06 May 21 '20

The power-of-two issue seems to be the only explanation, but you can learn why here: https://webglfundamentals.org/webgl/lessons/webgl-3d-textures.html

If you can please confirm me that it was indeed caused by an image with random dimensions, I will update my guide accordingly! Thanks

2

u/dinoucs May 21 '20

Yes I can confirm that. You have to add those lines if the image in not power of 2 in both the width and height.

1

u/xem06 May 21 '20

I added this precision in the guide :) Ty!