Jump to content

[SOLVED] Supersampling information in shader


photo

Recommended Posts

Posted

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

Posted

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!

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

Posted

Is there any workaround for this?

Posted

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:

Posted

Thanks, this works.

  • silent changed the title to [SOLVED] Supersampling information in shader
×
×
  • Create New...