diff options
author | Jacques Lucke <jacques@blender.org> | 2022-05-24 16:53:02 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-05-24 16:53:16 +0300 |
commit | 25d216724bc195d25aaaf336ab1cd3e7c55d78bf (patch) | |
tree | b344e452ae7677fb759d72d248c57de58cd46fdf /source/blender/draw/engines | |
parent | cd412b4454f3cb89c5baf365d5404746332eac68 (diff) |
Cleanup: make format
Diffstat (limited to 'source/blender/draw/engines')
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) |