Jump to content

Setting polygon offset per material


photo

Recommended Posts

Hello,

Previous to Unigine 2.13 beta, I had Material::setOffset. This is now gone and I see no replacement. How do I setup some polygon offset per material?

Kind Regards,
Adrian L.

Link to comment

That is most unfortunate. We are using very specific hardware/API/driver combination so know exactly what to expect from polygon offset. Maybe exposing some parts of materials with the warning that is configuration specific? Otherwise we probably need to create our own material (shader) and simulate polygon offset by changing the fragment depth output.

Link to comment

Creating a custom material for your use-case would be a better and more flexible solution.

Restoring of polygon offset in proper way would for sure require some additional time. This task currently has low priority, so right now and in the nearest future we do not plan to implement it.

 

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

Link to comment
×
×
  • Create New...