Jump to content

[SOLVED] Depth test for material using the Downsize option


photo

Recommended Posts

Posted

Hello,

 

I'm working on a grass solution which is based on a fur shader.

At high screen resolutions the performance gets very bad, because each pixel has to be rendered several times with alpha blending enabled.

 

Therefore I would like to use the Downsize option from the material and set it to either 'always scale' or 'always filter'.

However the downsized material doesn't use the main depth buffer, it seems that the downscaled image is just blended into the scene.

 

Is there any way to give the downsized material access to the main depth buffer?

 

Thank you very much!

 Cheers, Helmut

 

 

 

post-990-0-20778500-1415717658_thumb.png

post-990-0-62938600-1415717682_thumb.png

Posted

Hello Helmut,

 

In case of downscale rendering you have to handle depth by yourself reading deferred_depth in the shader.

Posted

Thank you very much, I think I have got it working!

 

cheers

 Helmut

×
×
  • Create New...