Fix #140419: Overlay: "High Quality Normals" mess with edges in Edit mode
This is caused by the latest refactor that made `vnor` be `short4` when High Quality Normals is on. Pull Request: https://projects.blender.org/blender/blender/pulls/140586
This commit is contained in:
committed by
Clément Foucault
parent
dc8e2c09d9
commit
7f5a57d219
@@ -29,6 +29,9 @@ VertIn input_assembly(uint in_vertex_id)
|
||||
if (gpu_attr_1.x == 1) {
|
||||
vert_in.lN = gpu_attr_load_uint_1010102_snorm(vnor, gpu_attr_1, v_i).xyz;
|
||||
}
|
||||
else if (gpu_attr_1.x == 2) {
|
||||
vert_in.lN = gpu_attr_load_short4_snorm(vnor, gpu_attr_1, v_i).xyz;
|
||||
}
|
||||
else {
|
||||
vert_in.lN.x = uintBitsToFloat(vnor[gpu_attr_load_index(v_i, gpu_attr_1) + 0]);
|
||||
vert_in.lN.y = uintBitsToFloat(vnor[gpu_attr_load_index(v_i, gpu_attr_1) + 1]);
|
||||
|
||||
Reference in New Issue
Block a user