Fixed some more imports/documentation.

This commit is contained in:
shan 2022-10-06 19:41:00 -07:00
parent 72feba51be
commit f9a6efcaa0
12 changed files with 28 additions and 26 deletions

View file

@ -1,9 +1,8 @@
// uniforms
struct GradientUniforms {
transform: mat4x4<f32>,
//xy = start, wz = end
position: vec4<f32>,
//x = start, y = end, zw = padding
//x = start stop, y = end stop, zw = padding
stop_range: vec4<i32>,
}
@ -32,6 +31,7 @@ fn vs_main(@location(0) input: vec2<f32>) -> VertexOutput {
return output;
}
//TODO: rewrite without branching
@fragment
fn fs_gradient(input: VertexOutput) -> @location(0) vec4<f32> {
let start = uniforms.position.xy;

View file

@ -1,4 +1,3 @@
// uniforms
struct SolidUniforms {
transform: mat4x4<f32>,
color: vec4<f32>