Crates.io | bevy_normal_material |
lib.rs | bevy_normal_material |
version | |
source | src |
created_at | 2022-11-18 03:05:37.552456+00 |
updated_at | 2025-05-08 01:10:40.784324+00 |
description | Simple normal material for Bevy |
homepage | https://github.com/mattatz/bevy_normal_material |
repository | https://github.com/mattatz/bevy_normal_material |
max_upload_size | |
id | 717615 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Simple normal material for Bevy.
Add the plugin to your app:
use bevy::prelude::*;
use bevy_normal_material::prelude::*;
fn main() {
App::new()
.add_plugins(NormalMaterialPlugin);
}
fn setup(
mut commands: Commands,
mut meshes: ResMut<Assets<Mesh>>,
mut materials: ResMut<Assets<NormalMaterial>>,
) {
commands.spawn(MaterialMeshBundle {
mesh: meshes.add(Mesh::from(shape::Cube { size: 1.0 })),
material: materials.add(NormalMaterial::default()),
..Default::default()
});
}
bevy | bevy_normal_material |
---|---|
0.9 | 0.1 |
0.10 | 0.2 |
0.11 | 0.3 |
0.12 | 0.4 |
0.13 | 0.5 |
0.14 | 0.6 |
0.15 | 0.7 |
0.16 | 0.8 |