mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-24 00:53:47 +00:00
Merge remote-tracking branch 'gg/development-3.6' into development
Conflicts: Engine/source/T3D/gameFunctions.cpp
This commit is contained in:
commit
014b566014
29 changed files with 252 additions and 129 deletions
|
|
@ -666,6 +666,11 @@ void ScatterSky::prepRenderImage( SceneRenderState *state )
|
|||
mFlareState.lightMat.identity();
|
||||
mFlareState.lightMat.setPosition( lightPos );
|
||||
|
||||
F32 dist = ( lightPos - state->getCameraPosition( ) ).len( );
|
||||
F32 coronaScale = 0.5f;
|
||||
F32 screenRadius = GFX->getViewport( ).extent.y * coronaScale * 0.5f;
|
||||
mFlareState.worldRadius = screenRadius * dist / state->getWorldToScreenScale( ).y;
|
||||
|
||||
mFlareData->prepRender( state, &mFlareState );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue