Skip to content

Commit

Permalink
0 -> xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Feb 28, 2024
1 parent 1e39cf6 commit ccf9731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/render/pbr_fragment.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn pbr_input_from_standard_material(
// let uv_transform = pbr_bindings::material.uv_transform;
// let uv_transform = mat3x3<f32>(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0);
let uv_transform = mat3x3<f32>(
vec3<f32>(pbr_bindings::material.uv_transform[0].xy, 0.0),
vec3<f32>(pbr_bindings::material.uv_transform[0].xyz),
vec3<f32>(pbr_bindings::material.uv_transform[1].xy, 0.0),
vec3<f32>(pbr_bindings::material.uv_transform[2].xy, 1.0),
);
Expand Down
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/render/pbr_prepass_functions.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn prepass_alpha_discard(in: VertexOutput) {
// let uv_transform = pbr_bindings::material.uv_transform;
// let uv_transform = mat3x3<f32>(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0);
let uv_transform = mat3x3<f32>(
vec3<f32>(pbr_bindings::material.uv_transform[0].xy, 0.0),
vec3<f32>(pbr_bindings::material.uv_transform[0].xyz),
vec3<f32>(pbr_bindings::material.uv_transform[1].xy, 0.0),
vec3<f32>(pbr_bindings::material.uv_transform[2].xy, 1.0),
);
Expand Down

0 comments on commit ccf9731

Please sign in to comment.