a bit slower animation for morphing effect
This commit is contained in:
parent
75dfebade5
commit
6bd5e236de
|
@ -5082,7 +5082,7 @@ void Renderer::renderMorphEffects(){
|
||||||
|
|
||||||
if(!initialized){
|
if(!initialized){
|
||||||
const World *world= game->getWorld();
|
const World *world= game->getWorld();
|
||||||
frameCycle=world->getFrameCount() % 20;
|
frameCycle=world->getFrameCount() % 40;
|
||||||
|
|
||||||
glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT | GL_DEPTH_BUFFER_BIT);
|
glPushAttrib(GL_ENABLE_BIT | GL_CURRENT_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
glDisable(GL_LIGHTING);
|
glDisable(GL_LIGHTING);
|
||||||
|
@ -5104,9 +5104,9 @@ void Renderer::renderMorphEffects(){
|
||||||
currVec=Vec3f(currVec.x,currVec.y-World::airHeight,currVec.z);
|
currVec=Vec3f(currVec.x,currVec.y-World::airHeight,currVec.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
float color=frameCycle*0.4f/20;
|
float color=frameCycle*0.4f/40;
|
||||||
glColor4f(color,color, 0.4f, 0.4f);
|
glColor4f(color,color, 0.4f, 0.4f);
|
||||||
renderSelectionCircle(currVec, mType->getSize(), frameCycle*0.99f/20, 0.2f);
|
renderSelectionCircle(currVec, mType->getSize(), frameCycle*0.85f/40, 0.2f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user