From cc329668dc51f20c961c2d89dc8b35281caf11c6 Mon Sep 17 00:00:00 2001 From: Vivian Meazza Date: Mon, 28 Nov 2011 20:22:10 +0000 Subject: [PATCH] Add include fog Signed-off-by: Vivian Meazza --- Effects/landmass.eff | 849 ++++++++++++++++++++++++++++--------------- 1 file changed, 553 insertions(+), 296 deletions(-) diff --git a/Effects/landmass.eff b/Effects/landmass.eff index 89f20e8be..0e62aff13 100644 --- a/Effects/landmass.eff +++ b/Effects/landmass.eff @@ -1,299 +1,556 @@ - Effects/landmass - Effects/terrain-default - - - Textures.high/Terrain/forest-relief.png - linear-mipmap-linear - repeat - repeat - normalized - - /sim/rendering/snow-level-m - 0.01 - 15.0 - /sim/rendering/quality-level - - - 6 - 7 - - - - - /sim/rendering/landmass-shader - /sim/rendering/shader-effects - - 4.5 - /sim/rendering/quality-level - - - - 2.0 - - - - GL_ARB_shader_objects - GL_ARB_shading_language_100 - GL_ARB_vertex_shader - GL_ARB_fragment_shader - - - GL_EXT_geometry_shader4 - - - - true - - material/ambient - material/diffuse - material/specular - ambient-and-diffuse - - transparent - smooth - back - - -1 - RenderBin - - - 1 - texture[0]/image - texture[0]/filter - texture[0]/wrap-s - texture[0]/wrap-t - - texture[0]/internal-format - - - - Shaders/landmass-g.vert - Shaders/landmass.geom - Shaders/terrain-nocolor.frag - 18 - triangles - triangle-strip - - tangent - 6 - - - binormal - 7 - - - - texture - sampler-2d - 1 - - - canopy_height - float - canopy-height - - 0 0 0 0 - - - true - - material/ambient - material/diffuse - material/specular - ambient-and-diffuse - - transparent - transparent - smooth - back - - render-bin/bin-number - render-bin/bin-name - - - 0 - noise - - - 1 - texture[0]/image - texture[0]/filter - texture[0]/wrap-s - texture[0]/wrap-t - - texture[0]/internal-format - - - - 2 - texture[2]/image - texture[2]/filter - texture[2]/wrap-s - texture[2]/wrap-t - - texture[2]/internal-format - - - - Shaders/landmass-g.vert - Shaders/landmass.geom - Shaders/landmass.frag - 18 - triangles - triangle-strip - - tangent - 6 - - - binormal - 7 - - - - NoiseTex - sampler-3d - 0 - - - BaseTex - sampler-2d - 1 - - - NormalTex - sampler-2d - 2 - - - depth_factor - float - depth-factor - - - snowlevel - float - snow-level - - - canopy_height - float - canopy-height - - - quality_level - float - quality-level - - - lequal - false - - - - - - - /sim/rendering/landmass-shader - /sim/rendering/shader-effects - - - 2.0 - - - - GL_ARB_shader_objects - GL_ARB_shading_language_100 - GL_ARB_vertex_shader - GL_ARB_fragment_shader - - - - - - true - - material/ambient - material/diffuse - material/specular - ambient-and-diffuse - - transparent - transparent - smooth - back - - render-bin/bin-number - render-bin/bin-name - - - 0 - noise - - - 1 - texture[0]/image - texture[0]/filter - texture[0]/wrap-s - texture[0]/wrap-t - - texture[0]/internal-format - - - - 2 - texture[2]/image - texture[2]/filter - texture[2]/wrap-s - texture[2]/wrap-t - - texture[2]/internal-format - - - - Shaders/landmass.vert - Shaders/landmass.frag - - tangent - 6 - - - binormal - 7 - - - - NoiseTex - sampler-3d - 0 - - - BaseTex - sampler-2d - 1 - - - NormalTex - sampler-2d - 2 - - - depth_factor - float - depth-factor - - - snowlevel - float - snow-level - - - quality_level - float - quality-level - - - + Effects/landmass + Effects/terrain-default + + + Textures.high/Terrain/forest-relief.png + linear-mipmap-linear + repeat + repeat + normalized + + + /environment/snow-level-m + + 0.01 + 15.0 + + /sim/rendering/shaders/quality-level + + + + + + /environment/ground-visibility-m + + + /environment/visibility-m + + + /environment/ground-haze-thickness-m + + + /rendering/scene/scattering + + + /environment/terminator-relative-position-m + + + /sim/rendering/scattering-shader + + + + + 6 + 7 + + + + + /sim/rendering/shaders/landmass + + 4.5 + /sim/rendering/shaders/quality-level + + + + 2.0 + + + + GL_ARB_shader_objects + GL_ARB_shading_language_100 + GL_ARB_vertex_shader + GL_ARB_fragment_shader + + + GL_EXT_geometry_shader4 + + + + true + + + material/ambient + + + material/diffuse + + + material/specular + + ambient-and-diffuse + + + transparent + + smooth + back + + -1 + RenderBin + + + 1 + + texture[0]/image + + + texture[0]/filter + + + texture[0]/wrap-s + + + texture[0]/wrap-t + + + texture[0]/internal-format + + + + Shaders/include_fog.vert + Shaders/landmass-g.vert + Shaders/landmass.geom + Shaders/include_fog.frag + Shaders/terrain-nocolor.frag + 18 + triangles + triangle-strip + + tangent + 6 + + + binormal + 7 + + + + texture + sampler-2d + 1 + + + canopy_height + float + + canopy-height + + + 0 0 0 0 + + + + visibility + float + + visibility + + + + avisibility + float + + avisibility + + + + hazeLayerAltitude + float + + lthickness + + + + scattering + float + + scattering + + + + terminator + float + + terminator + + + + fogType + int + + fogtype + + + + + + + true + + + material/ambient + + + material/diffuse + + + material/specular + + ambient-and-diffuse + + + transparent + + + transparent + + smooth + back + + + render-bin/bin-number + + + render-bin/bin-name + + + + 0 + noise + + + 1 + + texture[0]/image + + + texture[0]/filter + + + texture[0]/wrap-s + + + texture[0]/wrap-t + + + texture[0]/internal-format + + + + 2 + + texture[2]/image + + + texture[2]/filter + + + texture[2]/wrap-s + + + texture[2]/wrap-t + + + texture[2]/internal-format + + + + Shaders/include_fog.vert + Shaders/landmass-g.vert + Shaders/landmass.geom + Shaders/include_fog.frag + Shaders/landmass.frag + 18 + triangles + triangle-strip + + tangent + 6 + + + binormal + 7 + + + + NoiseTex + sampler-3d + 0 + + + BaseTex + sampler-2d + 1 + + + NormalTex + sampler-2d + 2 + + + depth_factor + float + + depth-factor + + + + snowlevel + float + + snow-level + + + + canopy_height + float + + canopy-height + + + + quality_level + float + + quality-level + + + + lequal + false + + + + visibility + float + + visibility + + + + avisibility + float + + avisibility + + + + hazeLayerAltitude + float + + lthickness + + + + scattering + float + + scattering + + + + terminator + float + + terminator + + + + fogType + int + + fogtype + + + + + + + + + /sim/rendering/shaders/landmass + + + 2.0 + + + + GL_ARB_shader_objects + GL_ARB_shading_language_100 + GL_ARB_vertex_shader + GL_ARB_fragment_shader + + + + + + true + + + material/ambient + + + material/diffuse + + + material/specular + + ambient-and-diffuse + + + transparent + + + transparent + + smooth + back + + + render-bin/bin-number + + + render-bin/bin-name + + + + 0 + noise + + + 1 + + texture[0]/image + + + texture[0]/filter + + + texture[0]/wrap-s + + + texture[0]/wrap-t + + + texture[0]/internal-format + + + + 2 + + texture[2]/image + + + texture[2]/filter + + + texture[2]/wrap-s + + + texture[2]/wrap-t + + + texture[2]/internal-format + + + + Shaders/include_fog.vert + Shaders/landmass.vert + Shaders/include_fog.frag + Shaders/landmass.frag + + tangent + 6 + + + binormal + 7 + + + + NoiseTex + sampler-3d + 0 + + + BaseTex + sampler-2d + 1 + + + NormalTex + sampler-2d + 2 + + + depth_factor + float + + depth-factor + + + + snowlevel + float + + snow-level + + + + quality_level + float + + quality-level + + + + + + visibility + float + + visibility + + + + avisibility + float + + avisibility + + + + hazeLayerAltitude + float + + lthickness + + + + scattering + float + + scattering + + + + terminator + float + + terminator + + + + fogType + int + + fogtype + + + + +