mirror of
https://github.com/jmarshall23/Quake_4_Alpha.git
synced 2026-08-12 04:01:12 +02:00
Fixes for decals and blaster weapon.
This commit is contained in:
@@ -213,7 +213,7 @@ bool rvElectricityParticle::Render( const rvBSE *effect, const idMat3 &view,
|
|||||||
idVec3 position;
|
idVec3 position;
|
||||||
EvaluatePosition( effect, position, time - mMotionStartTime );
|
EvaluatePosition( effect, position, time - mMotionStartTime );
|
||||||
if ( !GetLocked() ) {
|
if ( !GetLocked() ) {
|
||||||
work.length *= mInitAxis * effect->GetCurrentAxis();
|
work.length *= mInitAxis * effect->GetCurrentAxis().Transpose();
|
||||||
}
|
}
|
||||||
if ( GetGeneratedLine() ) {
|
if ( GetGeneratedLine() ) {
|
||||||
idVec3 velocity;
|
idVec3 velocity;
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ bool rvLineParticle::Render( const rvBSE *effect, const idMat3 &view,
|
|||||||
EvaluatePosition( effect, position, time - mMotionStartTime );
|
EvaluatePosition( effect, position, time - mMotionStartTime );
|
||||||
|
|
||||||
if ( !( mFlags & PTFLAG_LOCKED ) ) {
|
if ( !( mFlags & PTFLAG_LOCKED ) ) {
|
||||||
length *= mInitAxis * effect->GetCurrentAxis();
|
length *= mInitAxis * effect->GetCurrentAxis().Transpose();
|
||||||
}
|
}
|
||||||
if ( mFlags & PTFLAG_GENERATED_LINE ) {
|
if ( mFlags & PTFLAG_GENERATED_LINE ) {
|
||||||
idVec3 velocity;
|
idVec3 velocity;
|
||||||
@@ -323,7 +323,7 @@ bool rvModelParticle::Render( const rvBSE *effect, const idMat3 &view,
|
|||||||
idMat3 transform;
|
idMat3 transform;
|
||||||
rvAngles( rotation ).ToMat3( transform );
|
rvAngles( rotation ).ToMat3( transform );
|
||||||
if ( !( mFlags & PTFLAG_LOCKED ) ) {
|
if ( !( mFlags & PTFLAG_LOCKED ) ) {
|
||||||
transform *= mInitAxis * effect->GetCurrentAxis();
|
transform *= mInitAxis * effect->GetCurrentAxis().Transpose();
|
||||||
}
|
}
|
||||||
|
|
||||||
const modelSurface_t *surface = mModel->Surface( 0 );
|
const modelSurface_t *surface = mModel->Surface( 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user