gpu/shaders: be more robust against floating point inaccuracies

We're forced by compatibility to encode an integer state into a
floating point. Make the implicit conversion from floating point to
integer more robust against GPUs with low precision floats.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-02-29 14:23:26 +01:00
parent 148a2828e7
commit 8405bf0e47
2 changed files with 10 additions and 10 deletions
+7 -7
View File
File diff suppressed because one or more lines are too long