-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 2015-08-20 um 11:06 schrieb Henri Verbeet:
Shouldn't you just pass the color key as a range to the shader instead? E.g. in a 6 bpc format anything between 0.484f and 0.500f would get quantized to 0x1f. (Which, other floating point issues aside, would correspond to about 0.008 slop here. For a 5 bpc format you'd even have 0.016.) That would mean two uniforms instead of one, but could help with range color keys. I'll investigate the idea.
Otoh the idea of re-testing this stuff on old those GPUs doesn't really appeal to me :-( . -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJV1avAAAoJEN0/YqbEcdMwGmYP/3eX7u3M3OqSSZJ+lo5+aae7 3a9n7bA2cO8Z2Q5dBdJ/hNU4ifFy5jhHptUGBevc7d9tqKAMV8aU9994aW731kI1 PUHqQxGvluebjHTQiDNqHZ8PwUklglOPThW/6sYrOaBgktNoQOHa3O+HsrFHeTZg HkhMeIg+y+HUQvf+JZlAlNkyhQFji7J8055R3nAqmH/2FOp/3zsbE9m0okT2Qo5q nU+BcMzEdHliWcsa6xJ8/ki4roo4+4eIcNhMXLT/GuPry8TP3wO8VVyDTGmJW4oT JvHt3JdTZpngJd0cOR4Kcac/dmK+yeSoFWCg5UyEW5B5JgpysLbC/5ukONlXiijP Ta+3m8YOEznE8ue63ewo67Gm2/aTfM40tfO7c/boqJODkBtnQTdxXO2oWwWR2MbI SBx9d1/8huHSvF40xLLnSri1V5xdWJtTV4UaJm+t6XRxPtrAZm/enk9k2MT2I0Kp 55VHpL5VyqThlBpNoLI8GiLQjCl2t0fxeh4SGzuzRAifkkeWFAhBx5PLO3ROSW82 KlnsS+kCBqWJHy/HdYZAOQ2tjVLzgWAfbWJbV5H30hpu5Ywb6lo+JEOVu8m0UKfG RQrQNAbiAcTnywCmiZ6C8fsUk6Y0CyeEmfTqfrw1VlTFSalxPeHzct4RLzbPSL7d VtkChui4HR38UziAblMG =Jo61 -----END PGP SIGNATURE-----