mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-27 22:49:39 -06:00
Readability changes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user