Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

lighting with vb.net and csgl

fpausk
2004-11-05
2013-04-17
  • fpausk
    fpausk
    2004-11-05

    Hallo,
    in my drawin constuction (in VB.NET) i like have a diffuse light, shaddow, but i don' know. what have i to do?

    in c++ looks like so:

      GLfloat LPosition[4]=       //Lichtquellenrichtung
       {1.0F,1.0F,1.0F,0.0F};     //in Eye-Koor. definieren

      glLightfv(GL_LIGHT0,GL_POSITION,&LPosition[0]);

      GLfloat LModelAmbient[4]   //Umgebungslicht Modell
        ={0.2F,0.2F,0.2F,1.0F};  //Umgebungslicht Def.

      glLightModelfv( 
        GL_LIGHT_MODEL_AMBIENT, Modell   &LModelAmbient[0]);    
      glLightModeli(GL_LIGHT_MODEL_TWO_SIDE,1); 
      glColorMaterial( 
        GL_FRONT,              
        GL_AMBIENT_AND_DIFFUSE);