1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00
Files
godot/servers/rendering/renderer_rd/shaders
snowapril b6f72f2b4a Fix D_GGX code which can cause divide-by-zero val
When given roughness is lower than 0.01, d value in original code will
be zero. This can make last return value as NAN because of
divide-by-zero. This is well addressed in issue #56373.

Modified code is referenced on D_GGX function of google/filament
(https://github.com/google/filament/blob/main/shaders/src/brdf.fs#L54-L79)

Signed-off-by: snowapril <sinjihng@gmail.com>
2022-03-14 13:25:05 +09:00
..
2021-05-03 21:54:11 +10:00
2022-02-23 12:02:24 +01:00
2022-02-15 19:20:31 +01:00
2021-06-05 09:28:56 -03:00