trace from actor center
This commit is contained in:
parent
b862adb747
commit
91fb87e95e
10 changed files with 52 additions and 10 deletions
|
|
@ -141,6 +141,7 @@ protected:
|
|||
uint8_t mWireframe : 2;
|
||||
uint8_t mShadeVertex : 1;
|
||||
uint8_t mLightNoNormals : 1;
|
||||
uint8_t mUseSpriteCenter : 1;
|
||||
|
||||
FVector4 mWireframeColor;
|
||||
FVector4 uObjectColor;
|
||||
|
|
@ -185,6 +186,7 @@ public:
|
|||
|
||||
void Reset()
|
||||
{
|
||||
mUseSpriteCenter = 0;
|
||||
mLightNoNormals = 0;
|
||||
mShadeVertex = 0;
|
||||
mWireframe = 0;
|
||||
|
|
@ -279,6 +281,11 @@ public:
|
|||
mLightNoNormals = value;
|
||||
}
|
||||
|
||||
void SetUseSpriteCenter(bool value)
|
||||
{
|
||||
mUseSpriteCenter = value;
|
||||
}
|
||||
|
||||
void SetWireframeColor(FVector4 color)
|
||||
{
|
||||
mWireframeColor = color;
|
||||
|
|
@ -294,6 +301,11 @@ public:
|
|||
mSurfaceUniforms.uVertexNormal = { x, y, z, 0.f };
|
||||
}
|
||||
|
||||
void SetActorCenter(float x, float y, float z)
|
||||
{
|
||||
mSurfaceUniforms.uActorCenter = { x, y, z };
|
||||
}
|
||||
|
||||
void SetColor(float r, float g, float b, float a = 1.f, int desat = 0)
|
||||
{
|
||||
mSurfaceUniforms.uVertexColor = { r, g, b, a };
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ struct SurfaceUniforms
|
|||
float uAlphaThreshold;
|
||||
int uTextureIndex;
|
||||
float uDepthFadeThreshold;
|
||||
float padding3;
|
||||
float padding1;
|
||||
FVector3 uActorCenter;
|
||||
float padding2;
|
||||
};
|
||||
|
||||
struct SurfaceLightUniforms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue