Not logged inOpenClonk Forum
Up Topic 3D mesh rendering

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to Günther

> TODO: Why do we clear here when we set new pixel values for all pixels in that region anyway?


Because ClearBoxDw allocates the main memory buffer for the box, so that only that box needs to be sent to the gpu, and not the whole texture, or every pixel separately. It's an important optimization.

> TODO: This was GL_ADD. Is GL_MODULATE correct for inverted alpha? Others seem to break things... - ModulateClrA was changed to do a+b-1, but there is no GL_-constant for this...


No, but changing this to GL_MODULATE is one of the advantages that this patch gives us.

And yes, the shaders need the same. They can probably be simplified.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill