mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-05-30 00:41:19 +00:00
- Added gl_billboard_particles. If true, particles are billboarded to face the camera, if false the old behavior applies.
git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1501 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
8e2b798b8d
commit
9f441cd5d1
1 changed files with 2 additions and 1 deletions
|
@ -68,6 +68,7 @@ CVAR(Float, gl_sclipthreshold, 10.0, CVAR_ARCHIVE)
|
|||
CVAR(Float, gl_sclipfactor, 1.8, CVAR_ARCHIVE)
|
||||
CVAR(Int, gl_particles_style, 2, CVAR_ARCHIVE | CVAR_GLOBALCONFIG) // 0 = square, 1 = round, 2 = smooth
|
||||
CVAR(Int, gl_billboard_mode, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CVAR(Bool, gl_billboard_particles, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CVAR(Int, gl_enhanced_nv_stealth, 3, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
|
||||
CUSTOM_CVAR(Int, gl_fuzztype, 0, CVAR_ARCHIVE)
|
||||
{
|
||||
|
@ -215,7 +216,7 @@ void GLSprite::Draw(int pass)
|
|||
if (!modelframe)
|
||||
{
|
||||
// [BB] Billboard stuff
|
||||
const bool drawWithXYBillboard = ( !(actor && actor->renderflags & RF_FORCEYBILLBOARD)
|
||||
const bool drawWithXYBillboard = ( (particle && gl_billboard_particles) || !(actor && actor->renderflags & RF_FORCEYBILLBOARD)
|
||||
//&& GLRenderer->mViewActor != NULL
|
||||
&& (gl_billboard_mode == 1 || (actor && actor->renderflags & RF_FORCEXYBILLBOARD )) );
|
||||
gl_RenderState.Apply();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue