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
+7
View File
@@ -74,6 +74,13 @@ namespace UwU {
}
return;
} else if (shader.shaderType == BUFFER) {
for (uint16_t i = 0; i < height; i++) {
for (uint16_t x = LeftBound[i]; x <= RightBound[i]; x++) {
buffer.drawPixel(x, i + y0, ShaderMethods::buffer(shader.u0, shader.v0, shader.buffer, x, i + y0));
}
}
return;
}
return;
}