diff options
Diffstat (limited to 'source/blender')
3 files changed, 18 insertions, 18 deletions
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) diff --git a/source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl b/source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl index ea9d98c5060..1b113e529b6 100644 --- a/source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl +++ b/source/blender/draw/engines/eevee_next/shaders/eevee_attributes_lib.glsl @@ -130,13 +130,13 @@ int g_curves_attr_id = 0; * based on the attribute scope (point or spline). */ int curves_attribute_element_id() { - int id = interp.curves_strand_id; - if (drw_curves.is_point_attribute[g_curves_attr_id] != 0) { - id = hair_get_base_id(); - } + int id = interp.curves_strand_id; + 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) |