greggman / twgl.js

A Tiny WebGL helper Library
http://twgljs.org
MIT License
2.61k stars 258 forks source link

Wrapping option REPEAT for textures from buffers? #171

Closed fweth closed 3 years ago

fweth commented 3 years ago

I don't know exactly where the problem lies, but when I draw a texture directly to the screen, it defaults to REPEAT as wrapping option, yet when I draw it to a framebuffer and then from the framebuffer to the screen, it seems to only do CLAMP_TO_EDGE, even when I generate a texture with explicit wrapping option?

https://codepen.io/fweth/pen/vYGxGQq?editors=0010

fweth commented 3 years ago

Nevermind, I got it, had to set the option as attachment, not for the texture in the attachment!