-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
412 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#version 330 core | ||
|
||
uniform vec3 uColor; | ||
|
||
in vec3 vColor; | ||
out vec4 FragColor; | ||
|
||
void main(){ | ||
// Halo shading // | ||
vec2 radiant = gl_PointCoord - vec2(0.5, 0.5); | ||
float radiusSquare = dot(radiant, radiant); | ||
if(abs(radiant.y) < 0.1 && abs(radiant.x) < 0.2){ | ||
FragColor = vec4(vColor, 1.0); | ||
} | ||
else if(radiusSquare < 0.15){ // from 0.0625 to 0.25 | ||
FragColor = vec4(vColor, 0.15 - radiusSquare); | ||
} | ||
else{ | ||
discard; | ||
} | ||
// FragColor = vec4(vColor, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#version 330 core | ||
|
||
uniform vec3 uColor; | ||
|
||
in vec3 vColor; | ||
out vec4 FragColor; | ||
|
||
void main(){ | ||
// Halo shading // | ||
vec2 radiant = gl_PointCoord - vec2(0.5, 0.5); | ||
float radiusSquare = dot(radiant, radiant); | ||
if(abs(radiant.x) < 0.2 && abs(radiant.y) < 0.2){ | ||
FragColor = vec4(vColor, 1.0); | ||
} | ||
else{ | ||
discard; | ||
} | ||
// FragColor = vec4(vColor, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
#version 330 core | ||
|
||
uniform vec3 uColor; | ||
|
||
in vec3 vColor; | ||
out vec4 FragColor; | ||
|
||
void main(){ | ||
// Halo shading // | ||
vec2 radiant = gl_PointCoord - vec2(0.5, 0.5); | ||
float radiusSquare = dot(radiant, radiant); | ||
if(abs(radiant.x) < 0.07 && abs(radiant.y) < 0.07){ | ||
FragColor = vec4(uColor, 1.0); | ||
FragColor = vec4(vColor, 1.0); | ||
} | ||
else if(radiusSquare < 0.25){ // from 0.0625 to 0.25 | ||
FragColor = vec4(uColor, 0.25 - radiusSquare); | ||
FragColor = vec4(vColor, 0.25 - radiusSquare); | ||
} | ||
else{ | ||
discard; | ||
} | ||
// FragColor = vec4(uColor, 1.0); | ||
// FragColor = vec4(vColor, 1.0); | ||
} |
Oops, something went wrong.