Fix physics depending on fps

This commit is contained in:
Paul Mathieu
2021-12-30 03:47:57 -08:00
parent e8e4ccb9ad
commit 0b45bfe1eb
4 changed files with 53 additions and 26 deletions

View File

@@ -47,7 +47,7 @@ void main() {
if (color.a < 0.1) {
discard;
}
lowp float fogamount = smoothstep(40.0, 100.0, vDistance);
lowp float fogamount = smoothstep(80.0, 100.0, vDistance);
gl_FragColor = mix(vec4(vLighting * color.rgb, color.a), vec4(uFogColor, 1.0), fogamount);
}
`;