This commit is contained in:
Бранимир Караџић
2019-09-08 22:10:42 -07:00
parent 31caa79abe
commit 6533baff7b
4 changed files with 50 additions and 37 deletions

View File

@@ -184,10 +184,12 @@ static bgfx::UniformHandle s_shadowMap[ShadowMapRenderTargets::Count];
static bgfx::FrameBufferHandle s_rtShadowMap[ShadowMapRenderTargets::Count];
static bgfx::FrameBufferHandle s_rtBlur;
void mtxBillboard(float* __restrict _result
, const float* __restrict _view
, const float* __restrict _pos
, const float* __restrict _scale)
void mtxBillboard(
float* _result
, const float* _view
, const float* _pos
, const float* _scale
)
{
_result[ 0] = _view[0] * _scale[0];
_result[ 1] = _view[4] * _scale[0];
@@ -207,7 +209,7 @@ void mtxBillboard(float* __restrict _result
_result[15] = 1.0f;
}
void mtxYawPitchRoll(float* __restrict _result
void mtxYawPitchRoll(float* _result
, float _yaw
, float _pitch
, float _roll
@@ -1061,12 +1063,13 @@ void screenSpaceQuad(float _textureWidth, float _textureHeight, bool _originBott
}
}
void worldSpaceFrustumCorners(float* _corners24f
void worldSpaceFrustumCorners(
float* _corners24f
, float _near
, float _far
, float _projWidth
, float _projHeight
, const float* __restrict _invViewMtx
, const float* _invViewMtx
)
{
// Define frustum corners in view space.