mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
85d377647a
For Duke Nukem and its direct offspring (Nam, WW2GI and Redneck Rampage) the ramp is not a linear fade from 0 to 1, it needs to be a little darker than that. Unfortunately the proper factor needed here must be set manually, this cannot really be calculated from the lookup tables.
39 lines
875 B
C++
39 lines
875 B
C++
#pragma once
|
|
|
|
#include "PalEntry.h"
|
|
class PolymostShader;
|
|
|
|
enum PRSFlags
|
|
{
|
|
RF_ColorOnly = 1,
|
|
RF_UsePalette = 2,
|
|
RF_DetailMapping = 4,
|
|
RF_GlowMapping = 8,
|
|
RF_Brightmapping = 16,
|
|
RF_NPOTEmulation = 32,
|
|
RF_ShadeInterpolate = 64,
|
|
RF_FogDisabled = 128,
|
|
|
|
RF_HICTINT_Grayscale = 0x10000,
|
|
RF_HICTINT_Invert = 0x20000,
|
|
RF_HICTINT_Colorize = 0x40000,
|
|
RF_HICTINT_BLEND_Screen = 0x80000,
|
|
RF_HICTINT_BLEND_Overlay = 0x100000,
|
|
RF_HICTINT_BLEND_Hardlight = 0x200000,
|
|
RF_HICTINT_BLENDMASK = RF_HICTINT_BLEND_Screen | RF_HICTINT_BLEND_Overlay | RF_HICTINT_BLEND_Hardlight,
|
|
};
|
|
|
|
struct PolymostRenderState
|
|
{
|
|
float Shade;
|
|
float NumShades = 64.f;
|
|
float ShadeDiv = 62.f;
|
|
float VisFactor = 128.f;
|
|
int Flags = 0;
|
|
float NPOTEmulationFactor = 1.f;
|
|
float NPOTEmulationXOffset;
|
|
float Brightness = 1.f;
|
|
PalEntry FogColor;
|
|
|
|
void Apply(PolymostShader *shader);
|
|
};
|