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:
parent
605f0e3c74
commit
3cace276d2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue