Skip to content

Commit

Permalink
More gradual mountain texture.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Oct 11, 2021
1 parent b6b98f9 commit 51210c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/map_diffuse_generator.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void main()
gl_FragColor = mix(mix(gl_FragColor,texture2D(tex9,coord*min(0.8, 0.785 + 2.5*slope)),factor),texture2D(tex5,coord*0.65),0.1*factor);

// admix highlands
factor = smoothstep(255.0,290.0,height) * (1.0-slope);
factor = smoothstep(255.0,360.0,height) * (1.0-slope);
gl_FragColor = mix(gl_FragColor,texture2D(tex6,coord*min(1.02, 1.0 + 0.001*slope)),factor);

// ---- slope textures ----
Expand Down

0 comments on commit 51210c5

Please sign in to comment.