Skip to content

Commit

Permalink
Remove unused mip_bias parameter from apply_normal_mapping (#13752)
Browse files Browse the repository at this point in the history
Mip bias is no longer used here
  • Loading branch information
JMS55 authored Jun 10, 2024
1 parent 0dfdd87 commit c50a4d8
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion assets/shaders/array_texture.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ fn fragment(
double_sided,
is_front,
Nt,
view.mip_bias,
);
#endif

Expand Down
2 changes: 0 additions & 2 deletions crates/bevy_pbr/src/render/pbr_fragment.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ fn pbr_input_from_standard_material(
double_sided,
is_front,
Nt,
view.mip_bias,
);

#endif // STANDARD_MATERIAL_NORMAL_MAP
Expand Down Expand Up @@ -408,7 +407,6 @@ fn pbr_input_from_standard_material(
double_sided,
is_front,
clearcoat_Nt,
view.mip_bias,
);

#endif // STANDARD_MATERIAL_CLEARCOAT_NORMAL_MAP
Expand Down
1 change: 0 additions & 1 deletion crates/bevy_pbr/src/render/pbr_functions.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ fn apply_normal_mapping(
double_sided: bool,
is_front: bool,
in_Nt: vec3<f32>,
mip_bias: f32,
) -> vec3<f32> {
// Unpack the TBN vectors.
var T = TBN[0];
Expand Down
1 change: 0 additions & 1 deletion crates/bevy_pbr/src/render/pbr_prepass.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ fn fragment(
double_sided,
is_front,
Nt,
view.mip_bias,
);

#endif // STANDARD_MATERIAL_NORMAL_MAP
Expand Down

0 comments on commit c50a4d8

Please sign in to comment.