From 25d216724bc195d25aaaf336ab1cd3e7c55d78bf Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 24 May 2022 15:53:02 +0200 Subject: Cleanup: make format --- source/blender/draw/engines/eevee/shaders/shadow_vert.glsl | 12 ++++++------ source/blender/draw/engines/eevee/shaders/surface_vert.glsl | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'source/blender/draw/engines/eevee') diff --git a/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl index 9e136426e22..2926f8c5a89 100644 --- a/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl @@ -72,13 +72,13 @@ int g_curves_attr_id = 0; * based on the attribute scope (point or spline). */ int curves_attribute_element_id() { - int id = hairStrandID; - if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) { - id = hair_get_base_id(); - } + int id = hairStrandID; + if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) { + id = hair_get_base_id(); + } - g_curves_attr_id += 1; - return id; + g_curves_attr_id += 1; + return id; } vec4 attr_load_tangent(samplerBuffer cd_buf) diff --git a/source/blender/draw/engines/eevee/shaders/surface_vert.glsl b/source/blender/draw/engines/eevee/shaders/surface_vert.glsl index 013ba7e9312..a8e95e13b12 100644 --- a/source/blender/draw/engines/eevee/shaders/surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/surface_vert.glsl @@ -79,13 +79,13 @@ int g_curves_attr_id = 0; * based on the attribute scope (point or spline). */ int curves_attribute_element_id() { - int id = hairStrandID; - if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) { - id = hair_get_base_id(); - } + int id = hairStrandID; + if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) { + id = hair_get_base_id(); + } - g_curves_attr_id += 1; - return id; + g_curves_attr_id += 1; + return id; } vec4 attr_load_tangent(samplerBuffer cd_buf) -- cgit v1.2.3