fix VL_RENDER_RESOLUTION not working correct. add back OLD_LIGHTLEAK_FIX setting.

This commit is contained in:
Xonk
2023-10-08 15:33:05 -04:00
parent feeaec78ae
commit 447419a57c
3 changed files with 11 additions and 4 deletions

View File

@ -223,6 +223,7 @@ void waterVolumetrics(inout vec3 inColor, vec3 rayStart, vec3 rayEnd, float estE
void main() {
/* DRAWBUFFERS:0 */
// vec2 tc = floor(gl_FragCoord.xy)/VL_RENDER_RESOLUTION*texelSize+0.5*texelSize;
vec2 tc = floor(gl_FragCoord.xy)/VL_RENDER_RESOLUTION*texelSize+0.5*texelSize;
float z = texture2D(depthtex0,tc).x;
vec3 viewPos = toScreenSpace(vec3(tc/RENDER_SCALE,z));