From 5a0fc45853a17e71a224477d3af9115ad1f1d3c8 Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Mon, 27 Jan 2020 13:38:22 +0000 Subject: [PATCH] Fix Building share when model shader off. --- Docs/README.effects | 16 ++ Effects/building.eff | 424 ++++++++++++------------------------------- 2 files changed, 137 insertions(+), 303 deletions(-) diff --git a/Docs/README.effects b/Docs/README.effects index d535de66a..6ac5fbe66 100644 --- a/Docs/README.effects +++ b/Docs/README.effects @@ -379,3 +379,19 @@ application: in order to maintain backward compatibility. +Model Hierarchy +--------------- + +There are a large number of techniques used by the models, with complex +inheritance. Here is a handy list of the techniques, what they are for, and +where the based technique is defined + +# Where Defined Summary + +4 model-combined.xml ALS, quality>0, model>0 +5 model-defaults.xml Base ALS +7 model-combined-deferred.xml Rembrandt, model>0 +9 model-combined.xml quality>0, model>0 +10 model-defaults.xml Base Rembrandt +11 model-defaults.xml Generic shaders, quality>0 +13 model-defaults.xml Fallback - no predicate diff --git a/Effects/building.eff b/Effects/building.eff index 59956fbb7..2f602b9ea 100644 --- a/Effects/building.eff +++ b/Effects/building.eff @@ -114,66 +114,29 @@ 1 - + /sim/rendering/shaders/skydome /sim/rendering/shaders/quality-level /sim/rendering/shaders/model - - 2.0 - - - - GL_ARB_shader_objects - GL_ARB_shading_language_100 - GL_ARB_vertex_shader - GL_ARB_fragment_shader - + + 2.0 + + + + GL_ARB_shader_objects + GL_ARB_shading_language_100 + GL_ARB_vertex_shader + GL_ARB_fragment_shader + - - + + 4 @@ -198,11 +161,6 @@ Shaders/building-model-ALS-ultra.vert - instancePosition 10 @@ -231,8 +189,8 @@ - + /sim/rendering/shaders/skydome @@ -250,130 +208,7 @@ - - true - - material/ambient - material/diffuse - material/specular - material/emissive - material/shininess - ambient-and-diffuse - - false - flat - back - - -1 - RenderBin - - - 0 - texture[0]/image - texture[0]/type - texture[0]/filter - texture[0]/wrap-s - texture[0]/wrap-t - - texture[0]/internal-format - - - - 1 - texture[6]/image - texture[6]/type - texture[6]/filter - texture[6]/wrap-s - texture[6]/wrap-t - - texture[6]/internal-format - - - - - - Shaders/building-default.vert - Shaders/trivial.frag - - - instancePosition - 10 - - - instanceScale - 11 - - - rotPitchWtexX0 - 12 - - - wtexY0FRtexx1FSRtexY1 - 13 - - - rtexX0RtexY0StexX1 - 14 - - - rooftopscale - 15 - - - - texture - sampler-2d - 0 - - - dataBuffer - sampler-1d - 1 - - 0 0 0 0 - - - true - - material/ambient - material/diffuse - material/specular - material/emissive - material/shininess - ambient-and-diffuse - - false - false - flat - back - - render-bin/bin-number - render-bin/bin-name - - - 0 - texture[0]/image - texture[0]/type - texture[0]/filter - texture[0]/wrap-s - texture[0]/wrap-t - - texture[0]/internal-format - - - - 1 - texture[6]/image - texture[6]/type - texture[6]/filter - texture[6]/wrap-s - texture[6]/wrap-t - - texture[6]/internal-format - - Shaders/building-ALS.vert Shaders/terrain-ALS-base.frag @@ -405,84 +240,11 @@ 15 - - visibility - float - visibility - - - avisibility - float - avisibility - - - hazeLayerAltitude - float - lthickness - - - scattering - float - scattering - - - ground_scattering - float - ground_scattering - - - terminator - float - terminator - - - terrain_alt - float - terrain_alt - - - overcast - float - overcast - - - eye_alt - float - eye_alt - - - cloud_self_shading - float - cloud_self_shading - - - moonlight - float - moonlight - - - texture - sampler-2d - 0 - - - dataBuffer - sampler-1d - 1 - - - colorMode - int - 2 - - - lequal - false - + true @@ -547,6 +309,7 @@ + true @@ -610,7 +373,110 @@ - + + + + + true + 1 + 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 + 0.1 + ambient-and-diffuse + ambient-and-diffuse + + + 4 + + texture[3]/image + + + texture[3]/type + + + texture[3]/filter + + + texture[3]/wrap-s + + + texture[3]/wrap-t + + + texture[3]/internal-format + + + + Shaders/building-ubershader.vert + + instancePosition + 10 + + + instanceScale + 11 + + + rotPitchWtexX0 + 12 + + + wtexY0FRtexx1FSRtexY1 + 13 + + + rtexX0RtexY0StexX1 + 14 + + + rooftopscale + 15 + + + + + + + + + vertex-program-two-side + + + Shaders/building-default.vert + Shaders/include_fog.frag + + Shaders/default.frag + + instancePosition + 10 + + + instanceScale + 11 + + + rotPitchWtexX0 + 12 + + + wtexY0FRtexx1FSRtexY1 + 13 + + + rtexX0RtexY0StexX1 + 14 + + + rooftopscale + 15 + + + + + + true @@ -685,21 +551,10 @@ --> - - 1 - texture[6]/image - texture[6]/type - texture[6]/filter - texture[6]/wrap-s - texture[6]/wrap-t - - texture[6]/internal-format - - vertex-program-two-side - + Shaders/building-default.vert Shaders/include_fog.frag @@ -729,42 +584,6 @@ 15 - - fogType int @@ -772,7 +591,6 @@ fogtype - texture sampler-2d