Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
Qt 3D Studio 2.0
-
None
-
0ea14148b119e9b407fd619615b7d110d188dace
Description
The Oren-Nayar function used now has branching causing it to be slower to process even when roughness is 0. The current shader generator always inserts the value of 0 for roughness so the if-statement is not needed. A simple Lambert function can replace the current implementation.
Attachments
For Gerrit Dashboard: QT3DS-2010 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
235372,4 | Use a branchless diffuse function | master | qt3dstudio/qt3d-runtime | Status: MERGED | -2 | 0 |