Normand Briere
2019-11-07 dbbcbd6f6bd5b9c6eb194130ab471045faaf4955
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
public class Light extends Sphere
{
    Light()
    {
        super(); // 0,0,0);
        
        //super("Light");
        name = "Light";
    }
   
    /*
    void Draw(CameraPane display, boolean selected)
    {
        super.Draw(display, selected);
        
   javax.media.opengl.GL gl = display.GetGL();
        
        cVector light = new cVector();
        
        TransformToWorld(light, light);
        
        System.out.println("Light = " + light);
        
        LA.xformPos(light, display.renderCamera.toScreen, light);
        
        System.out.println("Light2 = " + light);
        
        display.lightParams[0] = (float) light.x;
        display.lightParams[1] = (float) light.y;
        display.lightParams[2] = (float) light.z;
        display.lightParams[3] = (float) 1;
        
   gl.glProgramEnvParameter4fvARB(gl.GL_FRAGMENT_PROGRAM_ARB, 127, display.lightParams, 0);
        
    }
     */
}