Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/engine/renderer/glsl_source/fogEquation_fp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

float FogGradientFunction(float k, float t)
{
return 1 - exp(-k * t);
return 1.0 - exp(-k * t);
}

float FogGradientAntiderivative(float k, float t)
Expand Down
2 changes: 1 addition & 1 deletion src/engine/renderer/glsl_source/fog_fp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ void main()

float s = distInFog * GetFogGradientModifier(u_FogGradient.y, t0, t1) * u_FogGradient.x;

vec4 color = vec4(1, 1, 1, GetFogAlpha(s));
vec4 color = vec4(1.0, 1.0, 1.0, GetFogAlpha(s));

outputColor = UnpackColor( u_Color ) * color;
}
4 changes: 2 additions & 2 deletions src/engine/renderer/glsl_source/vertexAnimation_vp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void VertexAnimation_P_N( vec3 fromPosition, vec3 toPosition,
vec3 toNormal = QuatTransVec( toQTangent, vec3( 0.0, 0.0, 1.0 ) );

position.xyz = 512.0 * mix(fromPosition, toPosition, frac);
position.w = 1;
position.w = 1.0;

normal = normalize(mix(fromNormal, toNormal, frac));
}
Expand All @@ -58,7 +58,7 @@ void VertexFetch(out vec4 position,
QTangentToLocalBasis( attr_QTangent2, toLB );

position.xyz = 512.0 * mix(attr_Position, attr_Position2, u_VertexInterpolation);
position.w = 1;
position.w = 1.0;

LB.normal = normalize(mix(fromLB.normal, toLB.normal, u_VertexInterpolation));
LB.tangent = normalize(mix(fromLB.tangent, toLB.tangent, u_VertexInterpolation));
Expand Down
Loading