Revert "intial changes for commit #495"

This reverts commit 4869877f77.
This commit is contained in:
MikiP98
2024-11-16 21:39:26 +01:00
parent 51d696ea5f
commit 62be2ab097
56 changed files with 2279 additions and 3555 deletions

View File

@ -1,13 +1,10 @@
// LPV block brightness scale. just 1.0/15.0
const float LpvBlockBrightness = 0.066666;
// LPV block brightness scale
const float LpvBlockBrightness = 1.0;
float lpvCurve(float values) {
#ifdef VANILLA_LIGHTMAP_MASK
return sqrt(values);
#else
return values*values;
#endif
// return values;
return pow(1.0 - sqrt(1.0-values), 2.0);
}
vec4 SampleLpvLinear(const in vec3 lpvPos) {
@ -20,8 +17,6 @@ vec4 SampleLpvLinear(const in vec3 lpvPos) {
vec3 hsv = RgbToHsv(lpvSample.rgb);
hsv.z = lpvCurve(hsv.b) * LpvBlockSkyRange.x;
lpvSample.rgb = HsvToRgb(hsv);
lpvSample.rgb = clamp(lpvSample.rgb/15.0,0.0,1.0);
return lpvSample;
}