From ab97ee326ae32614794b68aa1ae8b78eb360c5e3 Mon Sep 17 00:00:00 2001 From: timoore Date: Thu, 26 Nov 2009 10:44:44 +0000 Subject: [PATCH] effect for clouds Author: Tim Moore --- Effects/cloud.eff | 69 ++++++++++++++++++++++++++++++++++++++++++++ Shaders/3dcloud.vert | 1 + 2 files changed, 70 insertions(+) create mode 100644 Effects/cloud.eff diff --git a/Effects/cloud.eff b/Effects/cloud.eff new file mode 100644 index 000000000..8171f1fcf --- /dev/null +++ b/Effects/cloud.eff @@ -0,0 +1,69 @@ + + + Effects/tree + + + + + + + + /sim/rendering/shader-effects + + 1.0 + + + + + + + true + + 0.5 0.5 0.5 1.0 + 0.5 0.5 0.5 1.0 + off + + + greater + 0.05 + + smooth + + src-alpha + one-minus-src-alpha + + + false + + + 10 + DepthSortedBin + + + 0 + 2d + texture[0]/image + clamp + clamp + + + Shaders/3dcloud.vert + Shaders/3dcloud.frag + + usrAttr1 + 10 + + + usrAttr2 + 11 + + + + baseTexture + sampler-2d + 0 + + true + + + diff --git a/Shaders/3dcloud.vert b/Shaders/3dcloud.vert index e199b0be6..ebf0de821 100644 --- a/Shaders/3dcloud.vert +++ b/Shaders/3dcloud.vert @@ -1,3 +1,4 @@ +// -*-C++-*- #version 120 varying float fogFactor;