2018-06-20 11:49:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-08-20 19:02:40 +00:00
|
|
|
#include "matrix.h"
|
2018-06-22 19:05:36 +00:00
|
|
|
#include "r_utility.h"
|
2018-06-20 11:49:06 +00:00
|
|
|
|
2019-06-12 06:49:40 +00:00
|
|
|
struct HWDrawInfo;
|
|
|
|
|
2018-06-20 11:49:06 +00:00
|
|
|
struct HWViewpointUniforms
|
|
|
|
{
|
2018-06-22 19:05:36 +00:00
|
|
|
VSMatrix mProjectionMatrix;
|
|
|
|
VSMatrix mViewMatrix;
|
|
|
|
VSMatrix mNormalViewMatrix;
|
|
|
|
FVector4 mCameraPos;
|
|
|
|
FVector4 mClipLine;
|
2018-06-20 11:49:06 +00:00
|
|
|
|
2018-06-22 20:45:05 +00:00
|
|
|
float mGlobVis = 1.f;
|
|
|
|
int mPalLightLevels = 0;
|
|
|
|
int mViewHeight = 0;
|
|
|
|
float mClipHeight = 0.f;
|
|
|
|
float mClipHeightDirection = 0.f;
|
2018-09-29 11:23:40 +00:00
|
|
|
int mShadowmapFilter = 1;
|
2018-06-21 18:54:34 +00:00
|
|
|
|
2018-06-22 19:32:38 +00:00
|
|
|
void CalcDependencies()
|
|
|
|
{
|
|
|
|
mNormalViewMatrix.computeNormalMatrix(mViewMatrix);
|
|
|
|
}
|
|
|
|
|
2019-06-12 06:49:40 +00:00
|
|
|
void SetDefaults(HWDrawInfo *drawInfo);
|
2018-06-21 18:54:34 +00:00
|
|
|
|
2018-06-20 11:49:06 +00:00
|
|
|
};
|
2018-06-22 21:49:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
|