Readability changes

This commit is contained in:
aniisaaden
2020-07-15 14:14:28 +02:00
parent 452d929dbe
commit dda07f97fd

View File

@@ -37,9 +37,9 @@ Fragment getFragment() {
frag.depth = vs_depthClipSpace;
frag.gPosition = vs_positionViewSpace;
vec2 temp = gl_PointCoord - vec2(0.5);
float f = dot(temp, temp);
if (f>0.25) discard;
float radius = 0.5;
float distance = length(gl_PointCoord - vec2(radius));
if (distance > pow(radius, 2)) discard;
// There is no normal here
frag.gNormal = vec4(0.0, 0.0, -1.0, 1.0);