Final save commit for another attempt to fix fog, before revert.

This commit is contained in:
coolGi
2023-08-05 14:58:03 +09:30
parent 76bc81233a
commit 146c2e6f1c
2 changed files with 7 additions and 15 deletions
+7 -14
View File
@@ -1,9 +1,7 @@
in vec2 TexCoord;
in float vertexYPos;
//in uvec4 vPosition;
//in vec2 TexCoord;
//in float vertexYPos;
out vec4 fragColor;
@@ -82,6 +80,7 @@ vec3 calcViewPosition(vec2 coords) {
* version: 2023-6-21
*/
void main() {
float vertexYPos = 100f;
vec3 vertexWorldPos = calcViewPosition(TexCoord);
if (fullFogMode != 0) {
@@ -103,20 +102,14 @@ void main() {
}
// Testing
if (fragColor.r != 6969.) { // This line is so that the compiler doesnt delete the previos code
// if (fragColor.r != 6969.) { // This line is so that the compiler doesnt delete the previos code
// fragColor = vec4(
// mod(vertexWorldPos.x, 1),
// mod(vertexWorldPos.y, 1),
// mod(vertexWorldPos.z, 1),
// mod(texture(gDepthMap, TexCoord).x, 1),
// mod(texture(gDepthMap, TexCoord).y, 1),
// mod(texture(gDepthMap, TexCoord).z, 1),
// 1.
// );
// fragColor = vec4(
// mod(vPosition.x, 1),
// mod(vPosition.y, 1),
// mod(vPosition.z, 1),
// 1.
// );
}
// }
}
@@ -1,7 +1,6 @@
#version 150 core
in vec2 TexCoord;
in vec2 ViewRay;
out vec4 fragColor;