|
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);
|
|
}
|
*/
|
}
|