Small fix for POM

This commit is contained in:
Merlin1809
2026-03-15 17:17:32 +01:00
parent bf47ca84e1
commit dbdc127e10
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ void main() {
float maxdist = MAX_OCCLUSION_DISTANCE;
if (dist < maxdist) {
float depthmap = readNormal(texcoord.st).a;
float depthmap = readNormal(clamp(texcoord.st, texcoordam.st, texcoordam.st + texcoordam.pq)).a;
float used_POM_DEPTH = 1.0;
if ( viewVector.z < 0.0 && depthmap < 0.9999 && depthmap > 0.00001) {
+1 -1
View File
@@ -445,7 +445,7 @@ void main() {
if (falloff > 0.0)
#endif
{
float depthmap = readNormal(data_in.texcoord.st).a;
float depthmap = readNormal(clamp(data_in.texcoord.st, data_in.texcoordam.st, data_in.texcoordam.st + data_in.texcoordam.pq)).a;
float pomdepth = POM_DEPTH * falloff;
if ( viewVector.z < 0.0 && depthmap < 0.9999 && depthmap > 0.00001) {