Skip to content

Commit

Permalink
Fix blend shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
WindyDarian committed May 20, 2022
1 parent 29708f7 commit 6e5cc59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions servers/rendering/renderer_rd/shaders/skeleton.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void main() {
}

if (params.has_tangent) {
blend_tangent += decode_abgr_2_10_10_10(src_blend_shapes.data[base_offset]).rgb;
blend_tangent += decode_abgr_2_10_10_10(src_blend_shapes.data[base_offset]).rgb * w;
}

blend_total += w;
Expand All @@ -174,8 +174,8 @@ void main() {
}

vertex += blend_vertex;
normal += normalize(normal + blend_normal);
tangent.rgb += normalize(tangent.rgb + blend_tangent);
normal = normalize(normal + blend_normal);
tangent.rgb = normalize(tangent.rgb + blend_tangent);
}

if (params.has_skeleton) {
Expand Down

0 comments on commit 6e5cc59

Please sign in to comment.