diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-17 08:59:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 08:59:50 +0100 |
commit | 99d0df2e33af09655d92bed0d619b6a8f93183ae (patch) | |
tree | 0bdd376f362e316eea9ff8e46879181da3ead3a4 /servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl | |
parent | 93103693180c37afc349c2f410b3abb2ae62a549 (diff) | |
parent | 02161aad5aa1355e977ea7df225aef53dab2f5bb (diff) |
Merge pull request #38812 from aaronfranke/brace-no-empty-line
Remove all empty lines from the start of blocks defined with braces
Diffstat (limited to 'servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl')
-rw-r--r-- | servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl b/servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl index da3c60af04..285698f060 100644 --- a/servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl +++ b/servers/rendering/rasterizer_rd/shaders/scene_high_end.glsl @@ -868,7 +868,6 @@ void light_process_omni(uint idx, vec3 vertex, vec3 eye_vec, vec3 normal, vec3 v inout float alpha, #endif inout vec3 diffuse_light, inout vec3 specular_light) { - vec3 light_rel_vec = lights.data[idx].position - vertex; float light_length = length(light_rel_vec); float normalized_distance = light_length * lights.data[idx].inv_radius; @@ -1158,7 +1157,6 @@ void light_process_spot(uint idx, vec3 vertex, vec3 eye_vec, vec3 normal, vec3 v #endif inout vec3 diffuse_light, inout vec3 specular_light) { - vec3 light_rel_vec = lights.data[idx].position - vertex; float light_length = length(light_rel_vec); float normalized_distance = light_length * lights.data[idx].inv_radius; |