So I am trying to change the gamma values and brightness in my game. I think it has something to do with IDirect3DDevice9::SetGammaRamp function but I am not exactly sure how to use it. Anyone has any input on this?
Tell me more
×
Game Development Stack Exchange is a question and answer site for
professional and independent game developers. It's 100% free, no registration required.
|
|
The Win32 SetDeviceGammaRamp and GetDeviceGammaRamp calls are also options for you; they will work in windowed modes (but will affect the entire screen rather than just the game window) and are somewhat better documented than the D3D versions. You can also use render to texture and just brighten the texture while drawing. |
|||
|
|
|
In this answer is this link, but it work only in fullscreen mode. ( use IDirect3DDevice9::SetGammaRamp() ) Another approach is using HDR, you can found examples in Directx SDK Samples Directory + look at this example and this. |
|||
|
|