]> git.tdb.fi Git - r2c2.git/blobdiff - data/r2c2/sky.object
Reorganize data files into a directory structure
[r2c2.git] / data / r2c2 / sky.object
diff --git a/data/r2c2/sky.object b/data/r2c2/sky.object
new file mode 100644 (file)
index 0000000..0e278f6
--- /dev/null
@@ -0,0 +1,32 @@
+mesh
+{
+       vertices VERTEX3
+       {
+               vertex3 -1 -1 -1;
+               vertex3 1 -1 -1;
+               vertex3 -1 1 -1;
+               vertex3 1 1 -1;
+               vertex3 -1 -1 1;
+               vertex3 1 -1 1;
+               vertex3 -1 1 1;
+               vertex3 1 1 1;
+       };
+       batch TRIANGLE_STRIP
+       {
+               indices 0 1 2 3 7 1 5 0 4 2 6 7 4 5;
+       };
+};
+technique
+{
+       pass "sky"
+       {
+               shader "sky.shader";
+               uniforms
+               {
+                       uniform3f "wavelengths" 0.56 0.53 0.42;
+                       uniform1f "scatter_constant" 0.0079;
+                       uniform1f "sun_intensity" 1.0;
+                       uniform1f "sun_size" 0.005;
+               };
+       };
+};