I can now apply shaders to any GUI element, but I need a shader manager that will allow for hot reloading and tracking input/output variables.
This commit is contained in:
parent
80b4faf940
commit
a5b8e411e3
8 changed files with 121 additions and 16 deletions
|
@ -393,7 +393,7 @@ void Raycaster::update_level(GameLevel level) {
|
|||
}
|
||||
|
||||
void Raycaster::init_shaders() {
|
||||
dbc::check(sf::Shader::isAvailable(), "no shaders?!");
|
||||
// dbc::check(sf::Shader::isAvailable(), "no shaders?!");
|
||||
bool good = $brightness.loadFromFile("shaders/modal.frag", sf::Shader::Type::Fragment);
|
||||
dbc::check(good, "shader could not be loaded");
|
||||
$brightness.setUniform("source", sf::Shader::CurrentTexture);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue