1
0
Fork 0

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.
This commit is contained in:
Stuart Buchanan 2020-11-14 21:04:30 +00:00
parent 605f0e3c74
commit 3cace276d2

View file

@ -35,6 +35,11 @@ uniform float overcast;
uniform float eye_alt; uniform float eye_alt;
uniform float cloud_self_shading; 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 EarthRadius = 5800000.0;
const float terminator_width = 200000.0; const float terminator_width = 200000.0;