Thanks for answering.You can use predefined even/odd texture same dimensions like masked image, where values for the texels would be, example, 0 for even, 1 for odd.
Yes, I thought of that, but I really would like to stay with one texture.
I tryied using calculation with floats, and it looks like it does work.
I thought that there is going to be an accumulated floating resolution error, but it looks that there is none.
True, I could just use one pixel texture. thanks, I don't need it any more, but thanks never the less for the idea, might come handy some day :-)Render to texture(s), aka FBO.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Another variant of my idea. The even/odd texture could be small, 2x2 size. GL_REPEAT will do the rest...Thanks for answering.
Yes, I thought of that, but I really would like to stay with one texture.
I tryied using calculation with floats, and it looks like it does work.
I thought that there is going to be an accumulated floating resolution error, but it looks that there is none.
Bookmarks