17 lines
308 B
C++
17 lines
308 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <stdint.h>
|
||
|
|
|
||
|
|
#include "../datatypes.cpp"
|
||
|
|
#include "../helpers.cpp"
|
||
|
|
#include "../buffer.cpp"
|
||
|
|
|
||
|
|
namespace UwU {
|
||
|
|
template <typename Derived>
|
||
|
|
class ShaderBase {
|
||
|
|
public:
|
||
|
|
Color shade(uint16_t x, uint16_t y) {
|
||
|
|
return static_cast<Derived*>(this)->shade(x, y);
|
||
|
|
}
|
||
|
|
};
|
||
|
|
}
|