-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added RGB cardinal-axis lines and brighter lines every 10 units. #56
- Loading branch information
1 parent
c288758
commit 49e05ca
Showing
3 changed files
with
38 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
#version 420 core | ||
|
||
layout (location = 0) in vec3 VertexPosition; | ||
layout (location = 4) in vec4 VertexColour; | ||
|
||
layout(shared) uniform ViewProperties | ||
{ | ||
mat4 view; | ||
mat4 projection; | ||
} viewProperties; | ||
|
||
uniform vec4 colour; | ||
|
||
out vec4 FragmentColour; | ||
|
||
void main() | ||
{ | ||
gl_Position = viewProperties.projection * viewProperties.view * vec4(VertexPosition, 1.0); | ||
FragmentColour = colour; | ||
FragmentColour = VertexColour; | ||
} |
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