Skip to content

Commit

Permalink
fix dark color in custom material
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuwu committed Mar 18, 2024
1 parent b226e6d commit d02e86e
Showing 1 changed file with 1 addition 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

0 comments on commit d02e86e

Please sign in to comment.