From ec7a9ca018a51ca2532fa9a571f827e1a48c698c Mon Sep 17 00:00:00 2001 From: Firepal Date: Thu, 26 Nov 2020 13:08:30 +0100 Subject: [PATCH] Use correct normal for ReflectionProbe in GLES2 --- drivers/gles2/shaders/scene.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gles2/shaders/scene.glsl b/drivers/gles2/shaders/scene.glsl index ac7a8796a3a4..b55dbec37663 100644 --- a/drivers/gles2/shaders/scene.glsl +++ b/drivers/gles2/shaders/scene.glsl @@ -1600,7 +1600,7 @@ FRAGMENT_SHADER_CODE #endif refprobe1_reflection_normal_blend.a, #else - normal_interp, vertex_interp, refprobe1_local_matrix, + normal, vertex_interp, refprobe1_local_matrix, refprobe1_use_box_project, refprobe1_box_extents, refprobe1_box_offset, #endif refprobe1_exterior, refprobe1_intensity, refprobe1_ambient, roughness, @@ -1618,7 +1618,7 @@ FRAGMENT_SHADER_CODE #endif refprobe2_reflection_normal_blend.a, #else - normal_interp, vertex_interp, refprobe2_local_matrix, + normal, vertex_interp, refprobe2_local_matrix, refprobe2_use_box_project, refprobe2_box_extents, refprobe2_box_offset, #endif refprobe2_exterior, refprobe2_intensity, refprobe2_ambient, roughness,