summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-06-22 03:10:30 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-09-26 15:12:31 +0200
commit8a485ff658a9ad03dfc6bc07d0f350a97a706719 (patch)
tree4fe93668077e43c45ddbd8d4963dc4ffdd91f606 /editor
parenta0d1ba4a3d1760f48ef3297a6299ee3dbc1260e1 (diff)
downloadredot-engine-8a485ff658a9ad03dfc6bc07d0f350a97a706719.tar.gz
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>
Diffstat (limited to 'editor')
0 files changed, 0 insertions, 0 deletions