]> git.tdb.fi Git - r2c2.git/commitdiff
Use a shared white material for techniques
authorMikko Rasa <tdb@tdb.fi>
Mon, 9 Feb 2015 17:41:17 +0000 (19:41 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 9 Feb 2015 17:41:17 +0000 (19:41 +0200)
data/Märklin/H0/ctrack/track.tech
data/r2c2/default.tech
data/r2c2/white.mat [new file with mode: 0644]

index 112fd96c405fcaa540c732c2286ba0debdd326f8..86a8fc8c30c38030c1a766a385a76621aff2a119 100644 (file)
@@ -1,5 +1,6 @@
 pass ""
 {
+       material "white.mat";
        shader "default.shader";
 
        texunit 0
index 64a39ac6bced50bf7e08af153fc97719b07ed3c9..c6641cbf6564204f112f5c8fd8e95d14cdbaf1bc 100644 (file)
@@ -1,10 +1,6 @@
 pass ""
 {
-       material
-       {
-               diffuse 1.0 1.0 1.0 1.0;
-               ambient 1.0 1.0 1.0 1.0;
-       };
+       material "white.mat";
        shader "default.shader";
        texunit 0
        {
diff --git a/data/r2c2/white.mat b/data/r2c2/white.mat
new file mode 100644 (file)
index 0000000..191a222
--- /dev/null
@@ -0,0 +1,4 @@
+diffuse 1.0 1.0 1.0 1.0;
+ambient 1.0 1.0 1.0 1.0;
+specular 0.25 0.25 0.25 1.0;
+shininess 100;