Jump to content

Depth test


photo

Recommended Posts

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

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
×
×
  • Create New...