mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
c4c778cde9
This is a small feature push that adds a simple Shader for the Gizmo. This shader only takes one value: the color of the object. Very simple and fast to compile. This PR is missing: - Shader Pre Compiling. This is something that I am looking into now, however I thought it out of scope for this feature. Just thought I would drop this real fast. Let me know what y'all think! --------- Co-authored-by: Danny McGee <dannymcgee@gmail.com>
10 lines
206 B
WebGPU Shading Language
10 lines
206 B
WebGPU Shading Language
#import bevy_pbr::forward_io::VertexOutput
|
|
|
|
@group(1) @binding(0)
|
|
var<uniform> material_color: vec4<f32>;
|
|
|
|
@fragment
|
|
fn fragment(mesh: VertexOutput) -> @location(0) vec4<f32> {
|
|
return material_color;
|
|
}
|