mirror of
https://github.com/ZDoom/Raze.git
synced 2024-12-02 00:53:16 +00:00
40 lines
593 B
C
40 lines
593 B
C
#pragma once
|
|
|
|
#include "matrix.h"
|
|
|
|
struct HWDrawInfo;
|
|
|
|
enum class ELightBlendMode : uint8_t
|
|
{
|
|
CLAMP = 0,
|
|
CLAMP_COLOR = 1,
|
|
NOCLAMP = 2,
|
|
|
|
DEFAULT = CLAMP,
|
|
};
|
|
|
|
struct HWViewpointUniforms
|
|
{
|
|
VSMatrix mProjectionMatrix;
|
|
VSMatrix mViewMatrix;
|
|
VSMatrix mNormalViewMatrix;
|
|
FVector4 mCameraPos;
|
|
FVector4 mClipLine;
|
|
|
|
float mGlobVis = 1.f;
|
|
int mPalLightLevels = 0;
|
|
int mViewHeight = 0;
|
|
float mClipHeight = 0.f;
|
|
float mClipHeightDirection = 0.f;
|
|
int mShadowmapFilter = 1;
|
|
|
|
int mLightBlendMode = 0;
|
|
|
|
void CalcDependencies()
|
|
{
|
|
mNormalViewMatrix.computeNormalMatrix(mViewMatrix);
|
|
}
|
|
};
|
|
|
|
|
|
|