sebastian.vesenmayer Posted July 24, 2020 Share Posted July 24, 2020 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 comment
silent Posted July 24, 2020 Share Posted July 24, 2020 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
sebastian.vesenmayer Posted July 24, 2020 Author Share Posted July 24, 2020 Is there any workaround for this? Link to comment
silent Posted July 28, 2020 Share Posted July 28, 2020 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
sebastian.vesenmayer Posted July 28, 2020 Author Share Posted July 28, 2020 Thanks, this works. Link to comment
Recommended Posts