lpv align fix

This commit is contained in:
NULL511 2024-05-02 14:25:20 -04:00
parent 852d995db0
commit 4814cbb666

View File

@ -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) {