forked from simonfuhrmann/mve
-
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.
UMVE: add seperate overlay- and fix texture-shader
- Loading branch information
Showing
7 changed files
with
51 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#version 330 core | ||
|
||
in vec3 onormal; | ||
smooth in vec2 otexuv; | ||
|
||
uniform vec3 light1 = vec3(0.0, 0.0, 5.0); | ||
uniform sampler2D texunit; | ||
uniform vec4 ccolor = vec4(0.7, 0.7, 0.7, 1.0); | ||
|
||
layout(location=0) out vec4 frag_color; | ||
|
||
void main(void) | ||
{ | ||
frag_color = texture(texunit, otexuv); | ||
} |
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 core | ||
|
||
in vec4 pos; | ||
in vec3 normal; | ||
in vec2 texuv; | ||
|
||
out vec3 onormal; | ||
smooth out vec2 otexuv; | ||
|
||
void main(void) | ||
{ | ||
onormal = normal; | ||
otexuv = texuv; | ||
gl_Position = pos; | ||
} |
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