mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
lpv align fix
This commit is contained in:
parent
852d995db0
commit
4814cbb666
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user