Decals and Waterblocks
by Jeremiah Fulbright · in Torque Game Engine Advanced · 02/21/2007 (2:54 pm) · 1 replies
It seems that if a waterblock is "visible" behind a decal (ala the decal isn't 100% on an interior or the terrain, then the decal gets rendering artifacts from the way water is rendered.
Is there a proper way to fix this currently?
Is there a proper way to fix this currently?
Torque Owner Jeremiah Fulbright
Decals are added to a Render Bin which by default is rendered before Refraction and Water, which explains the behavior of Water "rendering" on top of a decal.
Moving the Decal entry in enum RenderBinTypes down under Water, causes it to render properly and not exhibit artifacts when parts of the decal might be drawn over water visibly. Decals should be in the same family as Foliage and other Translucent things which are rendered last, so this should be the right place... and a fix to get into 1.1