
# Objective WESL was broken on windows. ## Solution - Upgrade to `wesl_rs` 1.2. - Fix path handling on windows. - Improve example for khronos demo this week.
19 lines
373 B
Plaintext
19 lines
373 B
Plaintext
import super::util::make_polka_dots;
|
|
|
|
struct VertexOutput {
|
|
@builtin(position) position: vec4<f32>,
|
|
@location(2) uv: vec2<f32>,
|
|
}
|
|
|
|
struct CustomMaterial {
|
|
time: f32,
|
|
}
|
|
|
|
@group(2) @binding(0) var<uniform> material: CustomMaterial;
|
|
|
|
@fragment
|
|
fn fragment(
|
|
mesh: VertexOutput,
|
|
) -> @location(0) vec4<f32> {
|
|
return make_polka_dots(mesh.uv, material.time);
|
|
} |