Skip to content

Commit a8e8a59

Browse files
authored
Merge pull request #14602 from greggman/fog-fix
Distanced based fog
2 parents a7a0e7c + e5ae6ac commit a8e8a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11

22
#ifdef USE_FOG
3-
fogDepth = -mvPosition.z;
3+
fogDepth = length(mvPosition);
44
#endif

0 commit comments

Comments
 (0)