raze/source/common/rendering/hwrenderer/data/hw_viewpointuniforms.h

41 lines
593 B
C
Raw Normal View History

2020-04-26 21:17:54 +00:00
#pragma once
#include "matrix.h"
struct HWDrawInfo;
2023-01-15 08:30:01 +00:00
enum class ELightBlendMode : uint8_t
{
CLAMP = 0,
CLAMP_COLOR = 1,
NOCLAMP = 2,
DEFAULT = CLAMP,
};
2020-04-26 21:17:54 +00:00
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;
2023-01-15 08:30:01 +00:00
int mLightBlendMode = 0;
2020-04-26 21:17:54 +00:00
void CalcDependencies()
{
mNormalViewMatrix.computeNormalMatrix(mViewMatrix);
}
};