virtualx-engine/servers/rendering/renderer_rd/shaders
mandryskowski 33e46aac13
Revert the change of the limit for interpolation of R0 with respect to metallic and SSR
Commit 2c000cb72f changed the interpolation limits from (0.04, 1.0) to (0.04, 0.37). This is incorrect, as we want to have an F0 of 0.04 for dielectrics (materials with metalness of 0.0) and an F0 of 1.0 for metals.
The Schlick approximation uses an F0 of 0.04 for all dielectrics and it's good enough.
Having it lower than 1.0 leads to an incorrect application of the Fresnel effect for metals and leads to bugs like #79549
2023-07-18 19:18:19 +02:00
..
effects Revert the change of the limit for interpolation of R0 with respect to metallic and SSR 2023-07-18 19:18:19 +02:00
environment Merge pull request #77740 from ChibiDenDen/simplify_vulkan 2023-07-12 17:16:12 +02:00
forward_clustered Merge pull request #77740 from ChibiDenDen/simplify_vulkan 2023-07-12 17:16:12 +02:00
forward_mobile Merge pull request #77740 from ChibiDenDen/simplify_vulkan 2023-07-12 17:16:12 +02:00
blit.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
canvas.glsl Merge pull request #77740 from ChibiDenDen/simplify_vulkan 2023-07-12 17:16:12 +02:00
canvas_occlusion.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
canvas_sdf.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
canvas_uniforms_inc.glsl replace sampler arrays with constant sampler elements 2023-06-22 01:11:57 +03:00
cluster_data_inc.glsl Create mobile renderer 2021-05-03 21:54:11 +10:00
cluster_debug.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
cluster_render.glsl Save cluster render shader from being optimized out entirely 2023-05-08 18:39:49 +02:00
cluster_store.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
decal_data_inc.glsl More fixes to mobile renderer 2021-08-18 12:20:19 -03:00
giprobe_write.glsl RendererRD: Remove binding specifier for push constants 2022-02-11 18:42:32 +01:00
light_data_inc.glsl Implement Physical Light Units as an optional setting. 2022-08-31 12:14:46 -07:00
particles.glsl replace sampler arrays with constant sampler elements 2023-06-22 01:11:57 +03:00
particles_copy.glsl Translate inactive particles to -INF 2023-04-12 19:32:39 -04:00
samplers_inc.glsl replace sampler arrays with constant sampler elements 2023-06-22 01:11:57 +03:00
scene_data_inc.glsl Implement CAMERA_VISIBLE_LAYERS as built-in shader variable 2022-12-03 22:41:27 -08:00
scene_forward_aa_inc.glsl Fix alpha hash by correcting typos and doing calculations in object space 2022-11-14 17:57:49 -08:00
scene_forward_gi_inc.glsl replace sampler arrays with constant sampler elements 2023-06-22 01:11:57 +03:00
scene_forward_lights_inc.glsl Merge pull request #77740 from ChibiDenDen/simplify_vulkan 2023-07-12 17:16:12 +02:00
SCsub Extract shared scene data into a separate class 2022-09-15 12:09:57 +10:00
skeleton.glsl Automatically transform Skeleton2D calculations so pivots are not needed 2023-01-27 14:55:22 -08:00