added gradient shaders to all primatives
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user