🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Problem writing to floating point texture

Started by
2 comments, last by Tom Sloper 2 years, 8 months ago

The idea of this program (as a test) is to create a data texture, fill it with data, then render new value to it in a shader program and then use another program to display the texture data on a canvas quad. This is for WebGL2.

Here is a working fiddle: https://jsfiddle.net/ofn8apvk/

My problem is that only one pixel of the data texture (3x2) is overwritten, initial values on the texture are negative (shown in blue) and the new value is 0.5 (shown in red), the output looks like this:

Any help would be appreciated

Advertisement

I solved the problem, it's working now

Thread locked at request of OP.

-- Tom Sloper -- sloperama.com

This topic is closed to new replies.

Advertisement