Skip to content

Commit

Permalink
Update author in MaterialFog.glsllib
Browse files Browse the repository at this point in the history
  • Loading branch information
yaRnMcDonuts authored Feb 8, 2025
1 parent b3b2e01 commit f0553ca
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//author @jayfella
#ifndef __MATERIAL_FOG_UTIL__
#define __MATERIAL_FOG_UTIL__


vec4 getFogLinear(in vec4 diffuseColor, in vec4 fogColor, in float start, in float end, in float distance) {

float fogFactor = (end - distance) / (end - start);
Expand Down Expand Up @@ -39,8 +39,7 @@

#ifdef FOG_EXPSQ
uniform float m_ExpSqFog;
#endif

#endif

vec4 MaterialFog_calculateFogColor(in vec4 fragColor){
#ifdef FOG_LINEAR
Expand All @@ -54,7 +53,7 @@
#endif

return fragColor;
}
}

#endif
#endif

0 comments on commit f0553ca

Please sign in to comment.