2019-10-05 10:28:08 +00:00
|
|
|
#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;
|
2019-10-06 10:42:35 +00:00
|
|
|
float Fog[4];
|
|
|
|
float FogColor[4];
|
2019-10-05 10:28:08 +00:00
|
|
|
|
|
|
|
void Apply(PolymostShader *shader);
|
|
|
|
};
|