*** empty log message ***
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1017 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -327,6 +327,7 @@ void render_particles(int time)
|
||||
bool inside = p->o.dist(camera1->o) <= sz*1.25f; //1.25 is max wobble scale
|
||||
vec oc(p->o);
|
||||
oc.sub(camera1->o);
|
||||
if(reflecting && !refracting) oc.z = p->o.z - (hdr.waterlevel-0.3f);
|
||||
glRotatef(inside ? camera1->yaw - 180 : atan2(oc.y, oc.x)/RAD - 90, 0, 0, 1);
|
||||
glRotatef((inside ? camera1->pitch : asin(oc.z/oc.magnitude())/RAD) - 90, 1, 0, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user