Supersampling information in shader


photo

Recommended Posts

Hello,

is there any uniform which can be accessed to get supersampling scaling value in the geometry shader?

Did not find it in the documentation.

Thanks

Link to post

You can store supersampling parameter in material as workaround. Something like this:

MaterialPtr mat = Materials::findMaterial("name");
mat->setParameterFloat("supersampling", Render::getSupersampling());

 

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to post