From 3cace276d211ced8e5bc435cc4ec579cdfe3121c Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 14 Nov 2020 21:04:30 +0000 Subject: [PATCH] WS3.0: Add tile_level, tile_width, tile_height Add Uniforms to WS3.0 fragment shader to provide LoD information and make sampling of adjacent points in the landclass texture easier. --- Compositor/Shaders/ALS/ws30.frag | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Compositor/Shaders/ALS/ws30.frag b/Compositor/Shaders/ALS/ws30.frag index c794b508c..c6eaac854 100644 --- a/Compositor/Shaders/ALS/ws30.frag +++ b/Compositor/Shaders/ALS/ws30.frag @@ -35,6 +35,11 @@ uniform float overcast; uniform float eye_alt; uniform float cloud_self_shading; +// Passed from VPBTechnique, not the Effect +uniform int tile_level; +uniform float tile_width; +uniform float tile_height; + const float EarthRadius = 5800000.0; const float terminator_width = 200000.0;