From d7f2e84e16bded6d3e89c2ad7fbd8339d8642903 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 24 Apr 2021 02:51:39 +0100 Subject: [PATCH] Normalised the normally not normal normals --- assets/voxygen/shaders/lod-structure-vert.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/voxygen/shaders/lod-structure-vert.glsl b/assets/voxygen/shaders/lod-structure-vert.glsl index f8e6ac8efc..7c27550b0a 100644 --- a/assets/voxygen/shaders/lod-structure-vert.glsl +++ b/assets/voxygen/shaders/lod-structure-vert.glsl @@ -197,8 +197,8 @@ void main() { // ).xyz); const vec3 normals[8] = vec3[](vec3(-1,0,0), vec3(1,0,0), vec3(0,-1,0), vec3(0,1,0), vec3(0,0,-1), vec3(0,0,1), vec3(0,0,0), vec3(0,0,0)); - vec3 norm = /*normalize*/normals[(v_norm_ao >> 1u) & 3u].xyz; - f_norm = mix(-norm, norm, v_norm_ao & 1u); + vec3 norm = /*normalize*/normals[(v_norm_ao >> 0u) & 3u].xyz; + f_norm = norm;//mix(-norm, norm, v_norm_ao & 1u); /* vec3 col = vec3((uvec3(v_col) >> uvec3(0, 8, 16)) & uvec3(0xFFu)) / 255.0; f_col = srgb_to_linear(col) * srgb_to_linear(inst_col);