photo

Supersampling information in shader

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

Share this post


Link to post

Hi Sebastian,

Currently there is no uniform parameter exists that will tell you if supersampling is enabled. We considering adding it in the future SDK versions.

Thanks!

Share this post


Link to post

Is there any workaround for this?

Share this post


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());

 

Share this post


Link to post

Thanks, this works.

Share this post


Link to post