From 9dbebd3c2d6a2a876167265c0b6192dfb1a8ca65 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Tue, 1 May 2012 22:36:24 +0100 Subject: [PATCH] Emissive lighting on random buildings. --- Effects/building.eff | 90 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 87 insertions(+), 3 deletions(-) diff --git a/Effects/building.eff b/Effects/building.eff index 52b8abb69..7abd7b934 100644 --- a/Effects/building.eff +++ b/Effects/building.eff @@ -3,7 +3,7 @@ Effects/building Effects/model-default - + true 2d normalized @@ -11,12 +11,19 @@ clamp clamp + + true + 2d + normalized + linear-mipmap-linear + clamp + clamp + false - false true 1 - 0.3 0.3 0.3 1.0 + 0.6 0.6 0.6 1.0 1.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 0.02 0.02 0.02 1.0 @@ -55,5 +62,82 @@ /sim/rendering/shaders/skydome + + /sim/time/sun-angle-rad + + + + + + + + Shaders/terrain-haze.vert + Shaders/terrain-haze.frag + + + + + + + + + Shaders/deferred-gbuffer.vert + Shaders/deferred-gbuffer.frag + Shaders/gbuffer-functions.frag + + + + + + + + + + 1 + + + texture[1]/type + + + texture[1]/image + + + texture[1]/filter + + + texture[1]/wrap-s + + + texture[1]/wrap-t + + + + + Shaders/include_fog.vert + + Shaders/default.vert + Shaders/include_fog.frag + + Shaders/building-default.frag + + + lightmap + sampler-2d + 1 + + + sunangle + float + + sun-angle + + + +