mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Call mesh2d_tangent_local_to_world
with the right arguments (#6209)
# Objective Allow `Mesh2d` shaders to work with meshes that have vertex tangents ## Solution Correctly pass `mesh.model` into `mesh2d_tangent_local_to_world`
This commit is contained in:
parent
ca3e6e6797
commit
5e71d7f833
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ fn vertex(vertex: Vertex) -> VertexOutput {
|
|||
out.clip_position = mesh2d_position_world_to_clip(out.world_position);
|
||||
out.world_normal = mesh2d_normal_local_to_world(vertex.normal);
|
||||
#ifdef VERTEX_TANGENTS
|
||||
out.world_tangent = mesh2d_tangent_local_to_world(vertex.tangent);
|
||||
out.world_tangent = mesh2d_tangent_local_to_world(mesh.model, vertex.tangent);
|
||||
#endif
|
||||
#ifdef VERTEX_COLORS
|
||||
out.color = vertex.color;
|
||||
|
|
Loading…
Reference in a new issue