Commit 72d59cb
authored
Use high precision in generated ESSL (#2792)
## Change
- Specify `highp` to use 32-bit precision with ESSL
Fixes: #2655, #2654.
### Details
High Precision Change
The minimum ESSL version required is 3.0 , where `highp` precision is mandatory in fragment shaders, so the switch is safe.
Instead of IEEE 754 half‑precision (16‑bit) we now use single‑precision (32‑bit). This avoids cases of underflow/overflow and reduces accumulated math errors (for Std surface, OpenPBR and glTF).1 parent eae43db commit 72d59cb
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments