godot/scene
Hugo Locurcio 8a485ff658
Fix BaseMaterial3D refracting objects located in front of the material
Depth comparison is now used to prevent refraction from occurring
if the pixel being refracted is located in front of the object.

For pixels slightly behind the object, a `smoothstep()` curve
is used to progressively increases refraction intensity
as the distance between the object and the refraction increases.
This avoids sudden discontinuities in the refraction.

Co-authored-by: GeneralLegendary <generallegendary456@gmail.com>
2024-09-26 15:12:31 +02:00
..
2d SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
3d SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
animation SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
audio SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
debugger SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
gui Merge pull request #97483 from akien-mga/clang-format-19.1.0 2024-09-26 12:46:04 +02:00
main SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
resources Fix BaseMaterial3D refracting objects located in front of the material 2024-09-26 15:12:31 +02:00
theme SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00
property_list_helper.cpp
property_list_helper.h
property_utils.cpp
property_utils.h
register_scene_types.cpp Add external texture support (GLES3) 2024-09-20 10:48:32 -05:00
register_scene_types.h
scene_string_names.cpp
scene_string_names.h
SCsub SCons: Add unobtrusive type hints in SCons files 2024-09-25 09:34:35 -05:00