Set up the intro gamestate; Added opacity and scale controls to UI elements
This commit is contained in:
1 parent
9158de2f39
commit
cdcd8a1994
19 files changed
+136
-56
No files matched your search
Binary file not shown.
@@ -4,10 +4,11 @@ in vec2 texCoord;
|
||||
|
||||
uniform sampler2D text;
|
||||
uniform vec3 textColor;
|
||||
uniform float opacity;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
vec4 temp = vec4(1.0, 1.0, 1.0, texture(text, texCoord).r);
|
||||
color = vec4(textColor.xyz, 1.0) * temp;
|
||||
color = vec4(textColor.xyz, opacity) * temp;
|
||||
}
|
||||
@@ -3,9 +3,12 @@
|
||||
in vec2 texCoord;
|
||||
|
||||
uniform sampler2D tex;
|
||||
uniform float opacity;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = texture(tex, texCoord);
|
||||
vec3 texColor = texture(tex, texCoord).rgb;
|
||||
|
||||
color = vec4(texColor.rgb, opacity);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 97 KiB |
Reference in new issue
Block a user