home *** CD-ROM | disk | FTP | other *** search
- Luminary "Sun" {
- declination = PI/180*23; // ߬½«¡Ñ¡¿Ñ -23` .. 23`
- latitude = PI/180*40; // Φ¿α«Γá - -pi/2 .. pi/2
- }
-
- Plane "SunDecal" {
- texture = Texture("sun.tga");
- size = Size(2,2);
- mapping 0 = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
-
- transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
-
- lighting = Color(1,1,1);
-
- renderType = RenderAsRegular
- & AlphaBlending(SourceAlpha + InvertSourceAlpha)
- & MultiTexturing(
- Color(Texture Modulate Diffuse),
- Alpha(Texture SelectArg1 Diffuse),
- Texture(0,0))
- ;
- }
-
- Halo "SunGlow" {
- size = Size(10,10);
- texture = Texture("glow.tga");
- mapping 0 = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
- transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
-
- lighting = RGBColorSpline("SunLight", NormalTime)
- * (0.7-0.3*GlowFactor(ObjectOffset("Sun")*40));
-
- renderType = RenderAsAlpha
- & AlphaBlending(One + One)
- & MultiTexturing(
- Color(Texture Modulate Diffuse),
- Alpha(Texture SelectArg1 Diffuse),
- Texture(0,0));
-
- showSpeed = 8;
- hideSpeed = 4;
- minIntensity = 0.3;
- darkRendering = false;
- }
-
- Halo "SunGlow2" {
- size = Size(200*GlowFactor(ObjectOffset("Sun")*40),200*GlowFactor(ObjectOffset("Sun")*40));
- texture 0 = Texture("glow.tga");
- mapping 0 = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
- transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*40);
-
- lighting = RGBColorSpline("SunLight", NormalTime)
- * (GlowFactor(ObjectOffset("Sun")*20)*0.4);
-
- renderType = RenderAsAlpha
- & AlphaBlending(One + One)
- & MultiTexturing(
- Color(Texture Modulate Diffuse),
- Alpha(Texture SelectArg1 Diffuse),
- Texture(0,0));
-
- showSpeed = 4;
- hideSpeed = 2;
- minIntensity = 0.5;
- darkRendering = false;
- }
-
- //LenseFlare "SunLenseFlare" {
- // Lense(Texture("lense1.tga"), 2, 3);
- // Lense(Texture("lense2.tga"), 2, 3);
- //}
-
-
- //Glow "SunGlow" {
- // texture = Texture("glow.tga");
- // reference = Luminary("Sun");
- //}
-
- SceneLight "SunLight" {
- lightType = Directional;
- lighting = RGBColorSpline("SunLight", NormalTime);
- transformation = ObjectTransformation("Sun");
- }
-
- SceneLight "AmbientLight" {
- lightType = Ambient;
- lighting = ColorSpline("AverageIllumination", NormalTime)*0.5;
- }
-
- Plane "BlueMoon" {
- texture = Texture("Moon_B.tga");
- size = Size(3,3);
- mapping 0 = Mapping(AddressClamp,0,0,0,1,1,0,1,1);
-
- transformation = Transformation(CameraMatrix, ObjectOffset("Sun")*(-20));
-
- lighting = Color(1,1,1);
-
- renderType = RenderAsRegular
- & AlphaBlending(SourceAlpha + InvertSourceAlpha)
- & MultiTexturing(
- Color(Texture Modulate Diffuse),
- Alpha(Texture SelectArg1 Diffuse),
- Texture(0,0))
- ;
- }
-
- SceneLight "MoonLight" {
- lightType = Directional;
- lighting = Color((intensity = ValueSpline("Stars", NormalTime))*0.3,
- intensity*0.3,
- intensity*0.6);
-
- transformation = Transformation(ObjectMatrix("Sun")*Matrix(PI,0,0), Vector(0,0,0));
- }
-