leetvr / hotham

Hotham is a tool for creating incredible standalone VR games.
Apache License 2.0
389 stars 28 forks source link

De-duplicate pbr.frag by using global variables #411

Closed rasmusgo closed 1 year ago

rasmusgo commented 1 year ago

When I tried de-duplicating this code by passing more parameters, it showed clearly in the many helmets stress test. This time, there is no significant difference! See dedup.txt vs main.txt.

I have also run test_rendering_pbr and it passes with no changes in the images.