SDL_SetWindowBrightness is not working! |
mr_tawan
|
First of all, you might wan to try calling `SDL_GetError()` right after the set brightness thing. It might tell you something interesting.
Secondly I don't think this is what you are aiming for. From the wiki https://wiki.libsdl.org/SDL_SetWindowBrightness, this function set the brightness to the whole display/screen (rather than just your window, despite what its name suggested). The proper lighting system would be needed to litting up your model. I've never used this funtion though. I might be wrong. |
|||||||||||
|
Tch0c
|
I'm aware that's what the brightness function does. I also have a lighting system in place (I use phong shading) which lights up the model. I only have one light currently which is positioned in front of the model. That works regardless of the brightness setting. |
|||||||||||||
|