mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
cf30f5560b
The only compatibility mode feature left is the main drawer function using glBegin/glEnd but changing that is not as urgent as the rest. This also cleans up the fog application and adds the exponential fog mode again that somehow got lost over time.
28 lines
596 B
C++
28 lines
596 B
C++
#pragma once
|
|
|
|
class PolymostShader;
|
|
|
|
struct PolymostRenderState
|
|
{
|
|
int PalSwapIndex;
|
|
//float PalswapPos[2];
|
|
//float PalswapSize[2];
|
|
float Clamp[2];
|
|
float Shade;
|
|
float NumShades = 64.f;
|
|
float VisFactor = 128.f;
|
|
float FogEnabled = 1.f;
|
|
float UseColorOnly;
|
|
float UsePalette = 1.f;
|
|
float UseDetailMapping;
|
|
float UseGlowMapping;
|
|
float NPOTEmulation;
|
|
float NPOTEmulationFactor = 1.f;
|
|
float NPOTEmulationXOffset;
|
|
float Brightness = 1.f;
|
|
float ShadeInterpolate = 1.f;
|
|
float Fog[4];
|
|
float FogColor[4];
|
|
|
|
void Apply(PolymostShader *shader);
|
|
};
|