SkyBoxD.dpr 1.1 KB

1234567891011121314151617181920212223242526272829
  1. (*
  2. Example using GLSkybox. Use the W,A,S,D keys (or Z,Q,S,D) to move
  3. and the mouse to look around.
  4. The scene contains two GLSkyBox objects: GLSkyBox1 and GLSkyBox2 :
  5. GLSkyBox1 renders the 6 faces of the skybox cube showing
  6. the landscape, plus one cloudy-textured plane over our head;
  7. GLSkyBox2 renders only an extra cloudy-textured plane over our head, to
  8. make a parallattic effect with the other cloudy plane.
  9. The parallattic effect is achieved setting the "CloudsPlaneSize" and ""CloudsPlaneOffset"
  10. differently in GLSkyBox1 and GLSkyBox2, and by shifting
  11. the clouds texture gradually in the cadencer event.
  12. CloudsPlaneSize is the size of the clouds plane, while
  13. CloudsPlaneOffset is the distance from the center of the skybox cube (range : 0 to 0.5)
  14. Note that the moons are children of a GLSkyBox object, and therefore
  15. they are always rendered relatively to the camera
  16. *)
  17. program SkyBoxD;
  18. uses
  19. Forms,
  20. fSkyBoxD in 'fSkyBoxD.pas' {FormSkybox};
  21. {$R *.res}
  22. begin
  23. Application.Initialize;
  24. Application.CreateForm(TFormSkybox, FormSkybox);
  25. Application.Run;
  26. end.