Skip to content

Commit

Permalink
remove unnecessary sample_index
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Oct 18, 2022
1 parent 6e81975 commit 4494295
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions crates/bevy_pbr/src/render/pbr.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
struct FragmentInput {
@builtin(front_facing) is_front: bool,
@builtin(position) frag_coord: vec4<f32>,
@builtin(sample_index) sample_index: u32,
#import bevy_pbr::mesh_vertex_output
};

Expand Down Expand Up @@ -77,7 +76,6 @@ fn fragment(in: FragmentInput) -> @location(0) vec4<f32> {
pbr_input.N = prepare_normal(
material.flags,
in.world_normal,
// prepass_normal(in.frag_coord, in.sample_index),
#ifdef VERTEX_TANGENTS
#ifdef STANDARDMATERIAL_NORMAL_MAP
in.world_tangent,
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 @@ -14,7 +14,6 @@
struct FragmentInput {
@builtin(front_facing) is_front: bool,
@builtin(position) frag_coord: vec4<f32>,
@builtin(sample_index) sample_index: u32,
#ifdef OUTPUT_NORMALS
@location(0) world_normal: vec3<f32>,
#ifdef VERTEX_UVS
Expand Down

0 comments on commit 4494295

Please sign in to comment.