ashwin.sudhir Posted October 14, 2011 Share Posted October 14, 2011 Is there a way to set the way the Depth Test is performed for a material? Something on the lines of ALWAYS_PASS; we need some objects to be rendered on top of everything else. I did try searching the documentation, but nothing came up. Link to comment
ulf.schroeter Posted October 14, 2011 Share Posted October 14, 2011 You cannot change depth test of materials. For your use case you can use very large polygon offset values. See candle material in Unigine sanctury demo where this trick is used to ensure that first-person candle light always renders above scene. Another alternative would be WidgetSpriteNode class with (GUI_BLEND_SRC_ALPHA,GUI_BLEND_ONE_MINUS_SRC_ALPHA) blend function. There will be a sample for drawing an object above render scene in the next SDK update. Link to comment
manguste Posted October 19, 2011 Share Posted October 19, 2011 There will be a sample for drawing an object above render scene in the next SDK update. Yep, samples/render/node_00. Link to comment
Recommended Posts