Skip to content

Commit

Permalink
Fix dark color (#19)
Browse files Browse the repository at this point in the history
* fix dark color

* fix dark color in custom material

* changelog
  • Loading branch information
jabuwu authored Mar 18, 2024
1 parent 2e0aa19 commit c6a40c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/shaders/custom.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn vertex(vertex: Vertex) -> VertexOutput {
out.position = mesh_functions::mesh2d_position_world_to_clip(out.world_position);
out.world_normal = mesh_functions::mesh2d_normal_local_to_world(vertex.normal, vertex.instance_index);
out.color = vertex.color;
out.dark_color = vertex.dark_color;
return out;
}

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.8.1 (UNRELEASED)
- Fix dark color applying incorrectly with premultiplied alpha

# 0.8.0
- Update to Bevy 0.13

Expand Down
1 change: 1 addition & 0 deletions src/spine.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn vertex(vertex: Vertex) -> VertexOutput {
out.position = mesh_functions::mesh2d_position_world_to_clip(out.world_position);
out.world_normal = mesh_functions::mesh2d_normal_local_to_world(vertex.normal, vertex.instance_index);
out.color = vertex.color;
out.dark_color = vertex.dark_color;
return out;
}

Expand Down

0 comments on commit c6a40c8

Please sign in to comment.