-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 2015-06-17 um 11:36 schrieb Henri Verbeet:
Do we really need this? It almost feels nicer to just pass "end - start" to the shader and handle the division there, or perhaps even just pass "start". I like the idea of calculating this once per draw rather than once per fragment. I did notice a performance difference when I wrote ba61730daa6a614ef07128a69a0bbca819e716b4, although it was only visible in a test application I wrote for World of Tanks performance, not in a real world game.
I think Matteo's patch comment should be put inside the code to explain why the explicit check and INFINITE are there. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVgUSaAAoJEN0/YqbEcdMwjLIQAJCC+QAUteQU+ycsHl2Qm3by FebLPToQNg0mfUCXbOAGgEL7zXxGl2aRNC73x9kld/gwD9HuTPi36HFA/f7E6ddd 1xMjDWqzmlywaBI1+GyPSYn6C/7Xto1ESN6ytxrUa4xPi2f9M0iRmUdbWykIeg+a u89gznGVv3BZuVF+CEPbvbHbEir6tuUPHsLzb5Ue0tZVSf4MuSBXDvE8PKE4Jqv8 11Uphn03ZXMEKDV/b6LkZJrcR99WgxgIbGIo0DG/aNnDHT0NWYOJV8dCrk0/BAx5 iwtxsiQj8wybTaho/eFRsMqhij9yzvWDpg5gBB9ufGdqiZDd4MiKt+OIHa7DIkwa 0mQAM+3NXh/dSzWsEQJgubqmF4EMAO9dMPhsI5qAc7hAtDOziOiI7pYj3x6HGFML mFJ5q1mZe26viA9zGWduPCY3N7ltZzyngLcNleVv3M/AttBwWOD6cNFeZjGd0uUl Jei9S290PCaU+IGZ1FoJnqK14JnlisZngvDWG7slXxnh6Dj0Q394MWM/YCWb3Bfu ywnFCvjsy01SY0/9rxHBytlJAsdtp5DgXh98Ucj+yDeY1iswDIjP38F61+Fk03N/ T/i/AB1pJqcGRln7bOn6c66ZGTkxsIEu0BmR4pFlom582QYdwHlwa/6NjL1GZgye Ue4jfMUyGKNIDf8EH2Ua =gosR -----END PGP SIGNATURE-----