Update dependencies

This commit is contained in:
Sébastien Crozet
2023-01-15 11:59:15 +01:00
parent 56aa0f5e73
commit 9b5ccb95e7
19 changed files with 116 additions and 107 deletions

View File

@@ -73,6 +73,7 @@ mod dim {
pub(crate) const DEBUG_LINES_SHADER_HANDLE: HandleUntyped =
HandleUntyped::weak_from_u64(Shader::TYPE_UUID, 17477439189930443325);
#[derive(Resource)]
pub(crate) struct DebugLinesConfig {
depth_test: bool,
}
@@ -275,7 +276,7 @@ pub(crate) struct RenderDebugLinesMesh;
/// );
/// }
/// ```
#[derive(Default)]
#[derive(Default, Resource)]
pub struct DebugLines {
pub positions: Vec<[f32; 3]>,
//pub colors: Vec<[f32; 4]>,

View File

@@ -26,6 +26,7 @@ pub mod r3d {
use crate::lines::{DebugLinesConfig, RenderDebugLinesMesh, DEBUG_LINES_SHADER_HANDLE};
#[derive(Resource)]
pub(crate) struct DebugLinePipeline {
mesh_pipeline: MeshPipeline,
shader: Handle<Shader>,
@@ -208,6 +209,7 @@ pub mod r2d {
use crate::lines::{RenderDebugLinesMesh, DEBUG_LINES_SHADER_HANDLE};
#[derive(Resource)]
pub(crate) struct DebugLinePipeline {
mesh_pipeline: Mesh2dPipeline,
shader: Handle<Shader>,