public Sun(){
getWorldTransform().setLocalTranslation(GLDirectionalLight.getInstance().getDirection().mul(-2600));
Vec3f origin = new Vec3f(0,0,0);
Vec3f[] array = new Vec3f[1];
array[0] = origin;
GLPointVBO3D buffer = new GLPointVBO3D();
buffer.addData(array);
Material<GLTexture> material1 = new Material<GLTexture>();
material1.setDiffusemap(new Texture2DTrilinearFilter("textures/sun/sun.png"));
Material<GLTexture> material2 = new Material<GLTexture>();
material2.setDiffusemap(new Texture2DTrilinearFilter("textures/sun/sun_small1.png"));
GLRenderInfo renderInfo = new GLRenderInfo(SunShader.getInstance(),
new AlphaBlendingSrcAlpha(),
buffer);
addComponent(NodeComponentType.MAIN_RENDERINFO, renderInfo);
addComponent(NodeComponentType.MATERIAL0, material1);
addComponent(NodeComponentType.MATERIAL1, material2);
Light light = new Light();
light.setOcclusionQuery(new GLOcclusionQuery());
addComponent(NodeComponentType.LIGHT, light);
LightHandler.getLights().add(light);
}