Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3706 in orxonox.OLD for orxonox/branches/shadows/src/world.cc


Ignore:
Timestamp:
Mar 31, 2005, 11:29:47 PM (19 years ago)
Author:
dave
Message:

branches/shadows: Ok, das Abbild vom Raumschiff funktioniert schon mal, sieht recht cool aus:)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/shadows/src/world.cc

    r3698 r3706  
    2828#include "helper_parent.h"
    2929#include "glmenu_imagescreen.h"
    30 #include "skysphere.h"
    3130#include "importer/material.h"
    3231
     
    291290           
    292291           
    293             // create skybox
     292            //create shadow
     293            float a[]={1.0,1.0,1.0,4.0};
     294            this->shadow =new Shadow(myPlayer->model,(Player*)myPlayer,a);         
     295            shadow->init();                 
     296           
     297            //create skysphere
    294298            this->skysphere =new Skysphere();
    295                    
    296                    
     299           
     300           
    297301            // bind camera
    298302            this->localCamera = new Camera(this);
     
    583587 
    584588  glEnable(GL_TEXTURE_2D);
    585  
    586589  skysphere->draw();
     590 
     591  shadow->draw();
     592 
    587593 
    588594}
     
    668674 
    669675  skysphere->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
    670  
     676  shadow->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
    671677  //for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
    672678}
Note: See TracChangeset for help on using the changeset viewer.