Skip to content

Commit 4494295

Browse files
committed
remove unnecessary sample_index
1 parent 6e81975 commit 4494295

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

crates/bevy_pbr/src/render/pbr.wgsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
struct FragmentInput {
1212
@builtin(front_facing) is_front: bool,
1313
@builtin(position) frag_coord: vec4<f32>,
14-
@builtin(sample_index) sample_index: u32,
1514
#import bevy_pbr::mesh_vertex_output
1615
};
1716

@@ -77,7 +76,6 @@ fn fragment(in: FragmentInput) -> @location(0) vec4<f32> {
7776
pbr_input.N = prepare_normal(
7877
material.flags,
7978
in.world_normal,
80-
// prepass_normal(in.frag_coord, in.sample_index),
8179
#ifdef VERTEX_TANGENTS
8280
#ifdef STANDARDMATERIAL_NORMAL_MAP
8381
in.world_tangent,

crates/bevy_pbr/src/render/pbr_prepass.wgsl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
struct FragmentInput {
1515
@builtin(front_facing) is_front: bool,
1616
@builtin(position) frag_coord: vec4<f32>,
17-
@builtin(sample_index) sample_index: u32,
1817
#ifdef OUTPUT_NORMALS
1918
@location(0) world_normal: vec3<f32>,
2019
#ifdef VERTEX_UVS

0 commit comments

Comments
 (0)