From 4814cbb6664e5c1032f6e95010e3acb33387e8f6 Mon Sep 17 00:00:00 2001 From: NULL511 Date: Thu, 2 May 2024 14:25:20 -0400 Subject: [PATCH] lpv align fix --- shaders/lib/lpv_render.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shaders/lib/lpv_render.glsl b/shaders/lib/lpv_render.glsl index 3137630..1a1b3a4 100644 --- a/shaders/lib/lpv_render.glsl +++ b/shaders/lib/lpv_render.glsl @@ -20,7 +20,7 @@ vec4 SampleLpvNearest(const in ivec3 lpvPos) { } vec4 SampleLpvLinear(const in vec3 lpvPos) { - vec3 pos = lpvPos;// - 0.5; + vec3 pos = lpvPos - 0.5; ivec3 lpvCoord = ivec3(floor(pos)); vec3 lpvF = fract(pos); @@ -98,7 +98,7 @@ vec4 SampleLpvLinear(const in vec3 lpvPos) { vec3 GetLpvBlockLight(const in vec4 lpvSample) { // return GetLpvBlockLight(lpvSample, 1.0); - return lpvSample.rgb;// * LPV_BLOCKLIGHT_SCALE);// * DynamicLightBrightness; + return 3.0 * lpvSample.rgb;// * LPV_BLOCKLIGHT_SCALE);// * DynamicLightBrightness; } float GetLpvSkyLight(const in vec4 lpvSample) {