home *** CD-ROM | disk | FTP | other *** search
/ PC Zone 110 / DPPCZXM01A / DPPCZXM01A.ISO / demos / EOT / db / Configs / Environment / Eden / Light.sky < prev    next >
Encoding:
Text File  |  2001-08-27  |  3.7 KB  |  116 lines

  1. Luminary "Sun" {
  2.     declination    = PI/180*23; // ß¬½«¡Ñ¡¿Ñ -23` .. 23`
  3.     latitude       = PI/180*40; // Φ¿α«Γá - -pi/2 .. pi/2
  4. }
  5.  
  6. Plane "SunDecal" {
  7.     texture        = Texture("sun.tga");
  8.     size           = Size(2,2);
  9.     mapping 0      = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
  10.  
  11.     transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
  12.  
  13.     lighting       = Color(1,1,1);
  14.  
  15.     renderType     = RenderAsRegular
  16.                    & AlphaBlending(SourceAlpha + InvertSourceAlpha)
  17.                    & MultiTexturing(
  18.                        Color(Texture Modulate Diffuse),
  19.                        Alpha(Texture SelectArg1 Diffuse),
  20.                        Texture(0,0))
  21.                    ;
  22. }
  23.  
  24. Halo "SunGlow" {
  25.     size           = Size(10,10);
  26.     texture        = Texture("glow.tga");
  27.     mapping 0      = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
  28.     transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
  29.  
  30.     lighting       = RGBColorSpline("SunLight", NormalTime)
  31.                    * (0.7-0.3*GlowFactor(ObjectOffset("Sun")*40));
  32.  
  33.     renderType     = RenderAsAlpha
  34.                    & AlphaBlending(One + One)
  35.                    & MultiTexturing(
  36.                        Color(Texture Modulate Diffuse),
  37.                        Alpha(Texture SelectArg1 Diffuse),
  38.                        Texture(0,0));
  39.  
  40.     showSpeed      = 8;
  41.     hideSpeed      = 4;
  42.     minIntensity   = 0.3;
  43.     darkRendering  = false;
  44.  
  45. Halo "SunGlow2" {
  46.     size           = Size(200*GlowFactor(ObjectOffset("Sun")*40),200*GlowFactor(ObjectOffset("Sun")*40));
  47.     texture 0      = Texture("glow.tga");
  48.     mapping 0      = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
  49.     transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
  50.  
  51.     lighting       = RGBColorSpline("SunLight", NormalTime)
  52.                    * (GlowFactor(ObjectOffset("Sun")*20)*0.4);
  53.     
  54.     renderType     = RenderAsAlpha
  55.                    & AlphaBlending(One + One)
  56.                    & MultiTexturing(
  57.                        Color(Texture Modulate Diffuse),
  58.                        Alpha(Texture SelectArg1 Diffuse),
  59.                        Texture(0,0));
  60.  
  61.     showSpeed      = 4;
  62.     hideSpeed      = 2;
  63.     minIntensity   = 0.5;
  64.     darkRendering  = false;
  65.  
  66. //LenseFlare "SunLenseFlare" {
  67. //    Lense(Texture("lense1.tga"), 2, 3);
  68. //    Lense(Texture("lense2.tga"), 2, 3);
  69. //}
  70.  
  71.  
  72. //Glow "SunGlow" {
  73. //    texture        = Texture("glow.tga");
  74. //    reference      = Luminary("Sun");
  75. //}
  76.  
  77. SceneLight "SunLight" {
  78.     lightType      = Directional;
  79.     lighting       = RGBColorSpline("SunLight", NormalTime);
  80.     transformation = ObjectTransformation("Sun");
  81. }
  82.  
  83. SceneLight "AmbientLight" {
  84.     lightType      = Ambient;
  85.     lighting       = ColorSpline("AverageIllumination", NormalTime)*0.5;
  86. }
  87.  
  88. Plane "BlueMoon" {
  89.     texture        = Texture("Moon_B.tga");
  90.     size           = Size(3,3);
  91.     mapping 0      = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
  92.  
  93.     transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*(-20));
  94.  
  95.     lighting       = Color(1,1,1);
  96.  
  97.     renderType     = RenderAsRegular
  98.                    & AlphaBlending(SourceAlpha + InvertSourceAlpha)
  99.                    & MultiTexturing(
  100.                        Color(Texture Modulate Diffuse),
  101.                        Alpha(Texture SelectArg1 Diffuse),
  102.                        Texture(0,0))
  103.                    ;
  104. }
  105.  
  106. SceneLight "MoonLight" {
  107.     lightType      = Directional;
  108.     lighting       = Color((intensity = ValueSpline("Stars", NormalTime))*0.3,
  109.                            intensity*0.3,
  110.                            intensity*0.6);
  111.  
  112.     transformation = Transformation(ObjectMatrix("Sun")*Matrix(PI,0,0), Vector(0,0,0));
  113. }
  114.