diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-06-02 11:03:37 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-06-02 11:05:14 +0300 |
commit | 33eeed5b3ca94c49c4c7aca26f63e913bfd59414 (patch) | |
tree | 9fb6a4a4b119750d73a45afea728542abc87cc2b /source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl | |
parent | a493956eaae00e7cf6b895d8c26e7ed3db8d6cc8 (diff) |
Fix T98538 EEVEE: Geometry input node breaks with Displacement Texture
This was due to older drivers not honoring varying attributes shadowing by
local variables. Renaming the input argument fixes the issue.
Diffstat (limited to 'source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl index 4c9ff31622f..fed7ac7df66 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_geometry.glsl @@ -1,6 +1,6 @@ #pragma BLENDER_REQUIRE(gpu_shader_material_tangent.glsl) -void node_geometry(vec3 orco, +void node_geometry(vec3 orco_attr, out vec3 position, out vec3 normal, out vec3 tangent, @@ -21,8 +21,8 @@ void node_geometry(vec3 orco, tangent = g_data.curve_T; } else { - tangent_orco_z(orco, orco); - node_tangent(orco, tangent); + tangent_orco_z(orco_attr, orco_attr); + node_tangent(orco_attr, tangent); } parametric = vec3(g_data.barycentric_coords, 0.0); |