Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogleFrog committed Oct 11, 2021
1 parent 0da491e commit e907f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mapinfo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local mapinfo = {
shortname = "rplat",
description = "A sometimes craggy, sometimes plateauy random map, now with igloos (10x10)",
author = "GoogleFrog",
version = "v0.83",
version = "v0.84",
modtype = 3, --// 1=primary, 0=hidden, 3=map

maphardness = 140,
Expand Down
4 changes: 2 additions & 2 deletions 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,350.0,height) * (1.0-slope);
factor = smoothstep(255.0,380.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 Expand Up @@ -113,7 +113,7 @@ void main()

// Show mountains over cliffs
if (height > 255.0) {
factor = smoothstep(255.0,350.0,height)*max(0.0, 1.0 - slope*2.0 + 0.05);
factor = smoothstep(255.0,380.0,height)*max(0.0, 1.0 - slope*2.0 + 0.05);
gl_FragColor = mix(gl_FragColor,texture2D(tex6,coord*min(0.82, 0.8 + 0.001*slope)),factor);
}
}

0 comments on commit e907f18

Please sign in to comment.