1
0
Fork 0

Don't let the urban shader and the landmass shader fight over the city type terrain and restrict the landmass shader to only below a quality of 3.5

This commit is contained in:
Erik Hofman 2011-07-16 15:30:32 +02:00
parent 7300bc4bb0
commit 095e535082
3 changed files with 2 additions and 2 deletions

Binary file not shown.

BIN
Shaders/.urban.frag.swp Normal file

Binary file not shown.

View file

@ -56,14 +56,14 @@ void main (void)
{
float bump = 1.0;
if ( quality_level >= 3.5 ) {
if ( quality_level >= 3.0 ) {
linear_search_steps = 20;
}
vec2 uv, dp = vec2(0, 0), ds = vec2(0, 0);
vec3 N;
float d = 0;
if ( bump > 0.9 && quality_level >= 2.0 )
if ( bump > 0.9 && quality_level >= 2.0 && quality_level < 3.5)
{
vec3 V = normalize(ecPosition.xyz);
float a = dot(VNormal, -V);