Fix random patches of dirt on smooth LOD terrain

master
Marc Gilleron 2019-06-01 20:04:22 +01:00
parent b5e3bf18cf
commit 17cd56dca0
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ void vertex() {
}
void fragment() {
vec3 normal = v_world_normal;
vec3 normal = normalize(v_world_normal);
vec3 wpos = v_world_pos * 0.2;
vec3 blending = get_triplanar_blend(normal);
vec3 top_col = texture_triplanar(u_texture_top, wpos, blending).rgb;