Skip to content

Commit 80b3e37

Browse files
committed
2 parents c446f7a + 025980f commit 80b3e37

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/debuglines.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// One shader should be possible, previously bugged so we use 2 shaders: https://github.com/bevyengine/bevy/issues/4011
2-
#import bevy_pbr::mesh_view_bindings
2+
#import bevy_pbr::mesh_view_bindings view
33

44
struct Vertex {
55
@location(0) pos: vec3<f32>,

src/debuglines2d.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import bevy_sprite::mesh2d_view_bindings
1+
#import bevy_sprite::mesh2d_view_bindings view
22

33

44
struct Vertex {

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use bevy::{
99
render_resource::PrimitiveTopology,
1010
render_resource::Shader,
1111
view::{NoFrustumCulling, RenderLayers},
12-
Extract,
12+
Extract, Render,
1313
},
1414
};
1515
use shapes::AddLines;
@@ -188,7 +188,7 @@ impl Plugin for DebugLinesPlugin {
188188
})
189189
.init_resource::<SpecializedMeshPipelines<dim::DebugLinePipeline>>()
190190
.add_systems(ExtractSchedule, extract)
191-
.add_systems(Update, dim::queue.in_set(RenderSet::Queue));
191+
.add_systems(Render, dim::queue.in_set(RenderSet::Queue));
192192

193193
info!("Loaded {} debug lines plugin.", dim::DIMMENSION);
194194
}

src/render_dim.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ pub mod r3d {
4949
) -> Result<RenderPipelineDescriptor, SpecializedMeshPipelineError> {
5050
let mut shader_defs = Vec::new();
5151
shader_defs.push("LINES_3D".into());
52-
shader_defs.push(ShaderDefVal::Int(
52+
shader_defs.push(ShaderDefVal::UInt(
5353
"MAX_CASCADES_PER_LIGHT".to_string(),
54-
MAX_CASCADES_PER_LIGHT as i32,
54+
MAX_CASCADES_PER_LIGHT as u32,
5555
));
56-
shader_defs.push(ShaderDefVal::Int(
56+
shader_defs.push(ShaderDefVal::UInt(
5757
"MAX_DIRECTIONAL_LIGHTS".to_string(),
58-
MAX_DIRECTIONAL_LIGHTS as i32,
58+
MAX_DIRECTIONAL_LIGHTS as u32,
5959
));
6060
if depth_test {
6161
shader_defs.push("DEPTH_TEST_ENABLED".into());

0 commit comments

Comments
 (0)