From 771e1724b44afb85cf673e85ef0f2e02ebb30344 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 9 Feb 2015 19:41:17 +0200 Subject: [PATCH] Use a shared white material for techniques --- "data/M\303\244rklin/H0/ctrack/track.tech" | 1 + data/r2c2/default.tech | 6 +----- data/r2c2/white.mat | 4 ++++ 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 data/r2c2/white.mat diff --git "a/data/M\303\244rklin/H0/ctrack/track.tech" "b/data/M\303\244rklin/H0/ctrack/track.tech" index 112fd96..86a8fc8 100644 --- "a/data/M\303\244rklin/H0/ctrack/track.tech" +++ "b/data/M\303\244rklin/H0/ctrack/track.tech" @@ -1,5 +1,6 @@ pass "" { + material "white.mat"; shader "default.shader"; texunit 0 diff --git a/data/r2c2/default.tech b/data/r2c2/default.tech index 64a39ac..c6641cb 100644 --- a/data/r2c2/default.tech +++ b/data/r2c2/default.tech @@ -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 index 0000000..191a222 --- /dev/null +++ b/data/r2c2/white.mat @@ -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; -- 2.45.2