added gradient shaders to all primatives

This commit is contained in:
2026-07-08 17:13:57 -07:00
parent 89afdfce9b
commit ee0d43dd75
6 changed files with 62 additions and 9 deletions
+2
View File
@@ -32,6 +32,8 @@ namespace UwU {
} else if (shader.shaderType == VGRADIENT) {
buffer.drawPixel(x, y, ShaderMethods::gradient(shader.v0, shader.scale, shader.c0, shader.c1, y));
return;
} else if (shader.shaderType == BUFFER) {
buffer.drawPixel(x, y, ShaderMethods::buffer(shader.u0, shader.v0, shader.buffer, x, y));
}
return;
}