qzdoom/src/hwrenderer/utility/hw_lighting.h

22 lines
320 B
C
Raw Normal View History

#pragma once
2018-04-27 18:28:59 +00:00
#include "c_cvars.h"
#include "v_palette.h"
#include "templates.h"
2018-04-27 18:28:59 +00:00
#include "r_utility.h"
struct Colormap;
inline int hw_ClampLight(int lightlevel)
{
return clamp(lightlevel, 0, 255);
}
2018-04-27 18:28:59 +00:00
EXTERN_CVAR(Int, gl_weaponlight);
inline int getExtraLight()
{
return r_viewpoint.extralight * gl_weaponlight;
}