import graphics3d.Graphics3DFramework; import Graphics3D; // Called at the start of the program void onStart ( int rendererID ) { // Optional: set window size and background color setWindowSize( 800, 600 ) ; setBackgroundColor( 0, 0, 0, 255 ); // Turn off the default light sources setDirectionalLightBrightness( 0.0 ); setAmbientLightBrightness( 0.0 ); // (1.2, 1.5, 1.0): Place a directional light with brightness 0.5 int light = newLight( 1.2, 1.5, 1.0, 0.5 ); mountLight( light, rendererID ); // (0.0, 0.0, 0.0): Place an ambient light at the origin with brightness 0.5 int ambientLight = newAmbientLight( 0.0, 0.0, 0.0, 0.5 ); mountLight( ambientLight, rendererID ); // Create and place a sphere model int sphere = newSphereModel( 2.0, 2.0, 2.0, 12, 8 ); mountModel( sphere, rendererID ); }