mirror of
https://github.com/godotengine/godot.git
synced 2024-12-27 11:24:59 +08:00
b6f72f2b4a
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> |
||
---|---|---|
.. | ||
forward_clustered | ||
forward_mobile | ||
shaders | ||
cluster_builder_rd.cpp | ||
cluster_builder_rd.h | ||
effects_rd.cpp | ||
effects_rd.h | ||
pipeline_cache_rd.cpp | ||
pipeline_cache_rd.h | ||
renderer_canvas_render_rd.cpp | ||
renderer_canvas_render_rd.h | ||
renderer_compositor_rd.cpp | ||
renderer_compositor_rd.h | ||
renderer_scene_environment_rd.cpp | ||
renderer_scene_environment_rd.h | ||
renderer_scene_gi_rd.cpp | ||
renderer_scene_gi_rd.h | ||
renderer_scene_render_rd.cpp | ||
renderer_scene_render_rd.h | ||
renderer_scene_sky_rd.cpp | ||
renderer_scene_sky_rd.h | ||
renderer_storage_rd.cpp | ||
renderer_storage_rd.h | ||
SCsub | ||
shader_rd.cpp | ||
shader_rd.h | ||
uniform_set_cache_rd.cpp | ||
uniform_set_cache_rd.h |