implemented shaders, gradients, and uv mapping
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "../datatypes.cpp"
|
||||
#include "../helpers.cpp"
|
||||
#include "../buffer.cpp"
|
||||
#include "shader.cpp"
|
||||
|
||||
namespace UwU {
|
||||
class ColorShader : public Shader {
|
||||
public:
|
||||
ColorShader(Color color) {
|
||||
this->shaderColor = color;
|
||||
}
|
||||
|
||||
Color shaderColor;
|
||||
|
||||
Color color(uint16_t u, uint16_t v) override {
|
||||
(void)u;
|
||||
(void)v;
|
||||
return shaderColor;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user