Kill warnings
This commit is contained in:
@@ -16,7 +16,7 @@ use crate::{
|
|||||||
manifest::{FighterManifest, FighterManifestRegistry},
|
manifest::{FighterManifest, FighterManifestRegistry},
|
||||||
spawn_fighter,
|
spawn_fighter,
|
||||||
visual::FighterAnimations,
|
visual::FighterAnimations,
|
||||||
}, input::{LocalInputAssignments, LocalInputSource, MatchInputAssignments}, match_runtime::MatchState, materials::fighter_material::FighterMaterial, netcode::{
|
}, input::{LocalInputAssignments, LocalInputSource, MatchInputAssignments}, match_runtime::MatchState, netcode::{
|
||||||
GGRSCfg,
|
GGRSCfg,
|
||||||
session::{ConnectionStatus, SessionConfig, create_session},
|
session::{ConnectionStatus, SessionConfig, create_session},
|
||||||
}, scripting::FighterAttackScript, stage::{
|
}, scripting::FighterAttackScript, stage::{
|
||||||
|
|||||||
@@ -13,17 +13,6 @@ pub struct FighterMaterialExtension {
|
|||||||
status_color: LinearRgba,
|
status_color: LinearRgba,
|
||||||
#[uniform(100)]
|
#[uniform(100)]
|
||||||
status_color_intensity: f32,
|
status_color_intensity: f32,
|
||||||
|
|
||||||
// Web examples WebGL2 support: structs must be 16 byte aligned.
|
|
||||||
#[cfg(feature = "webgl2")]
|
|
||||||
#[uniform(100)]
|
|
||||||
_webgl2_padding_8b: u32,
|
|
||||||
#[cfg(feature = "webgl2")]
|
|
||||||
#[uniform(100)]
|
|
||||||
_webgl2_padding_12b: u32,
|
|
||||||
#[cfg(feature = "webgl2")]
|
|
||||||
#[uniform(100)]
|
|
||||||
_webgl2_padding_16b: u32,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const SHADER_ASSET_PATH: &str = "embedded://shinespark/shaders/fighter.wgsl";
|
const SHADER_ASSET_PATH: &str = "embedded://shinespark/shaders/fighter.wgsl";
|
||||||
|
|||||||
@@ -1,16 +1,8 @@
|
|||||||
use bevy::{
|
use bevy::{
|
||||||
asset::embedded_asset, gltf::GltfMaterialName, material::OpaqueRendererMethod, pbr::ExtendedMaterial, prelude::*, world_serialization::WorldInstanceReady,
|
asset::embedded_asset, prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
use bevy::{
|
|
||||||
color::palettes::basic::RED,
|
|
||||||
pbr::{MaterialExtension},
|
|
||||||
prelude::*,
|
|
||||||
render::render_resource::*,
|
|
||||||
shader::ShaderRef,
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::materials::fighter_material::{FighterMaterial, FighterMaterialExtension};
|
|
||||||
|
|
||||||
pub mod fighter_material;
|
pub mod fighter_material;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user