Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Use VertexOuput instead of FragmentInput in prepass.wgsl #10009

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions crates/bevy_pbr/src/prepass/prepass.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -142,24 +142,6 @@ fn vertex(vertex_no_morph: Vertex) -> VertexOutput {
}

#ifdef PREPASS_FRAGMENT
idobenamram marked this conversation as resolved.
Show resolved Hide resolved
struct FragmentInput {
#ifdef VERTEX_UVS
@location(0) uv: vec2<f32>,
#endif // VERTEX_UVS

#ifdef NORMAL_PREPASS
@location(1) world_normal: vec3<f32>,
#endif // NORMAL_PREPASS

#ifdef MOTION_VECTOR_PREPASS
@location(3) world_position: vec4<f32>,
@location(4) previous_world_position: vec4<f32>,
#endif // MOTION_VECTOR_PREPASS

#ifdef DEPTH_CLAMP_ORTHO
@location(5) clip_position_unclamped: vec4<f32>,
#endif // DEPTH_CLAMP_ORTHO
}
idobenamram marked this conversation as resolved.
Show resolved Hide resolved

struct FragmentOutput {
#ifdef NORMAL_PREPASS
Expand All @@ -176,7 +158,7 @@ struct FragmentOutput {
}

@fragment
fn fragment(in: FragmentInput) -> FragmentOutput {
fn fragment(in: VertexOutput) -> FragmentOutput {
var out: FragmentOutput;

#ifdef NORMAL_PREPASS
Expand Down