-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added separate shader for drawing arcs
- Loading branch information
1 parent
db222f0
commit d3dc562
Showing
6 changed files
with
51 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
#version 330 | ||
|
||
layout (location = 0) in vec3 a_pos; | ||
|
||
uniform mat4 u_mvp; | ||
|
||
out vec3 v_pos; | ||
|
||
|
||
void main() | ||
{ | ||
v_pos = a_pos; | ||
gl_Position = u_mvp * vec4(a_pos.xyz, 1); | ||
} |
13 changes: 13 additions & 0 deletions
13
Arrangement_on_surface_2/demo/earth/shaders/per_vertex_color_fs.glsl
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,13 @@ | ||
|
||
#version 330 | ||
|
||
uniform vec4 u_plane; | ||
|
||
in vec3 v_color; | ||
out vec4 out_color; | ||
|
||
|
||
void main() | ||
{ | ||
out_color = vec4(v_color, 1); | ||
} |
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