diff --git a/Effects/tree.eff b/Effects/tree.eff index a49a4bb31..ae2d4864b 100644 --- a/Effects/tree.eff +++ b/Effects/tree.eff @@ -68,6 +68,10 @@ src-alpha one-minus-src-alpha + + gequal + 0.1 + 0 2d @@ -107,6 +111,10 @@ clamp clamp + + gequal + 0.1 + Shaders/tree-haze.vert Shaders/tree-haze.frag diff --git a/Shaders/tree-haze.vert b/Shaders/tree-haze.vert index 222e3828e..0f298cb3e 100644 --- a/Shaders/tree-haze.vert +++ b/Shaders/tree-haze.vert @@ -95,7 +95,7 @@ void main() vec4 diffuse_color = gl_FrontMaterial.diffuse * max(0.1, n); //diffuse_color.a = 1.0; - vec4 ambient_color = gl_FrontLightModelProduct.sceneColor + gl_LightSource[0].ambient * gl_FrontMaterial.ambient; + vec4 ambient_color = gl_FrontMaterial.ambient; // here start computations for the haze layer // we need several geometrical quantities diff --git a/Textures/Trees/tropical-summer.dds b/Textures/Trees/tropical-summer.dds new file mode 100644 index 000000000..877e90cfd Binary files /dev/null and b/Textures/Trees/tropical-summer.dds differ diff --git a/Textures/Trees/tropical-summer.png b/Textures/Trees/tropical-summer.png new file mode 100644 index 000000000..9fdfe0549 Binary files /dev/null and b/Textures/Trees/tropical-summer.png differ