Crates.io | bevy_wind_waker_shader |
lib.rs | bevy_wind_waker_shader |
version | 0.2.0 |
source | src |
created_at | 2024-02-19 01:56:35.058294 |
updated_at | 2024-07-04 17:36:32.861081 |
description | A toon shader that looks like the one used for characters in The Legend of Zelda: The Wind Waker |
homepage | |
repository | https://github.com/janhohenheim/bevy_wind_waker_shader |
max_upload_size | |
id | 1144603 |
size | 7,483,419 |
A toon shader that looks like the one used for characters in The Legend of Zelda: The Wind Waker. The main code is taken from the ideas presented in this video.
Sphere:
Scene throughout day:
Scene in daylight:
Scene at night:
The shader has the following properties:
All colors and the texture mask are taken from The Legend of Zelda: The Wind Waker.
Differences to The Wind Waker:
Keep in mind this shader only replicates what is seen on the characters in The Wind Waker, not the environment!
use bevy::prelude::*;
use bevy_wind_waker_shader::prelude::*;
fn main() {
App::new()
.add_plugins((DefaultPlugins, WindWakerShaderPlugin::default()))
.add_systems(Startup, spawn_character)
.run();
}
fn spawn_character(mut commands: Commands, asset_server: Res<AssetServer>) {
commands.spawn((
SceneBundle {
scene: asset_server.load("models/Fox.glb"),
..default()
},
WindWakerShaderBuilder::default()
.time_of_day(TimeOfDay::Afternoon)
.weather(Weather::Sunny)
.build(),
));
}
bevy | bevy_wind_waker_shader |
---|---|
0.14 | 0.2 |
0.13 | 0.1 |