22 lines
373 B
C++
22 lines
373 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "../datatypes.cpp"
|
|
#include "../helpers.cpp"
|
|
#include "../buffer.cpp"
|
|
#include "shaderbase.cpp"
|
|
|
|
namespace UwU {
|
|
class ColorShader : public ShaderBase<ColorShader> {
|
|
public:
|
|
ColorShader(Color c) {
|
|
this->c = c;
|
|
}
|
|
Color c;
|
|
|
|
Color shade(uint16_t x, uint16_t y) {
|
|
return c;
|
|
}
|
|
};
|
|
} |