X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fterrain.cc;h=0f100742ea7f9045eb6adb9bea02aa5e42a79338;hp=c4db7edadf066c8618866051da4349067f8f3721;hb=136a7fcbfabb2f0b0b3e340213e36a548715a370;hpb=0d3454cbd5e803b8dea601110d403cd5563df9be diff --git a/src/terrain.cc b/src/terrain.cc index c4db7ed..0f10074 100644 --- a/src/terrain.cc +++ b/src/terrain.cc @@ -115,7 +115,7 @@ float Terrain::get_height(float u, float v) const sn = sn * 0.5 + 0.5; if(params.coarse_heightmap.pixels) { - Vec4 texel = params.coarse_heightmap.lookup_nearest(u, v); + Vec4 texel = params.coarse_heightmap.lookup_linear(u, v, 1.0 / params.tile_usub, 1.0 / params.tile_vsub); sn *= texel.x; } return sn;