Commit: a730fcfc61fe4260bd5d96a8c616e61d1f4ae36f
Author: Lukas Tönne
Date:   Wed Jun 13 08:47:59 2018 +0100
Branches: hair_guides_grooming
https://developer.blender.org/rBa730fcfc61fe4260bd5d96a8c616e61d1f4ae36f

Fix incorrect strand data offset due to added taper attributes.

===================================================================

M       source/blender/draw/modes/shaders/common_hair_guides_lib.glsl

===================================================================

diff --git a/source/blender/draw/modes/shaders/common_hair_guides_lib.glsl 
b/source/blender/draw/modes/shaders/common_hair_guides_lib.glsl
index e737048bd31..1d9060f6004 100644
--- a/source/blender/draw/modes/shaders/common_hair_guides_lib.glsl
+++ b/source/blender/draw/modes/shaders/common_hair_guides_lib.glsl
@@ -164,7 +164,7 @@ mat4 mat4_from_vectors(vec3 nor, vec3 tang, vec3 co)
 
 void get_strand_data(int index, out int start, out int count, out DeformParams 
deform_params)
 {
-       int offset = strand_map_start + index;
+       int offset = strand_map_start + index * 2;
        vec2 a = read_texdata(offset);
        vec2 b = read_texdata(offset + 1);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to