From ffe873806511decbde35ba0a86343425528fc8ca Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 6 Nov 2021 16:21:58 +0000 Subject: [PATCH] WS30: Correct phototexture coordinates --- Effects/ws30.eff | 103 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 99 insertions(+), 4 deletions(-) diff --git a/Effects/ws30.eff b/Effects/ws30.eff index 3df2880c5..09810a34c 100644 --- a/Effects/ws30.eff +++ b/Effects/ws30.eff @@ -193,7 +193,21 @@ - /sim/rendering/photoscenery/enabled + + /sim/rendering/photoscenery/enabled + + + + 2.0 + + + + GL_ARB_shader_objects + GL_ARB_shading_language_100 + GL_ARB_vertex_shader + GL_ARB_fragment_shader + + @@ -223,10 +237,91 @@ texture[0]/wrap-s texture[0]/wrap-t texture[0]/internal-format - - modulate - + + Shaders/include_fog.vert + Shaders/default.vert + Shaders/shadows-include.vert + Shaders/ws30-photo.frag + Shaders/include_fog.frag + Shaders/shadows-include.frag + Shaders/clustered-include.frag + + orthophotoTexCoord + 14 + + + + visibility + float + visibility + + + avisibility + float + avisibility + + + hazeLayerAltitude + float + lthickness + + + scattering + float + scattering + + + terminator + float + terminator + + + fogType + int + fogtype + + + texture + sampler-2d + 0 + + + colorMode + int + 2 + + + + orthophotoTexture + sampler-2d + 15 + + + + shadow_tex + sampler-2d + 10 + + + shadows_enabled + bool + + shadows_enabled + + + + sun_atlas_size + int + + sun_atlas_size + + + + + lequal + +