From 779c36b538121c5ade3633ae5cb67bb14c8c3877 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Mon, 24 Feb 2020 12:54:55 +0000 Subject: [PATCH] Reduced cost of vertex pushing --- assets/voxygen/shaders/include/lod.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/voxygen/shaders/include/lod.glsl b/assets/voxygen/shaders/include/lod.glsl index 5e5519269e..78e5d5e065 100644 --- a/assets/voxygen/shaders/include/lod.glsl +++ b/assets/voxygen/shaders/include/lod.glsl @@ -41,8 +41,8 @@ vec3 lod_pos(vec2 v_pos, vec2 focus_pos) { // Remove spiking by "pushing" vertices towards local optima vec2 nhpos = hpos; - for (int i = 0; i < 5; i ++) { - nhpos -= lod_norm(hpos).xy * 10.0; + for (int i = 0; i < 3; i ++) { + nhpos -= lod_norm(hpos).xy * 15.0; } hpos = hpos + normalize(nhpos - hpos + 0.001) * min(length(nhpos - hpos), 32);