Tech ENABLE_GLBEGIN_GLEND_REMOVAL - Background rendering
This commit is contained in:
parent
a939d8e4c0
commit
eda55701a2
6 changed files with 69 additions and 3 deletions
11
resources/shaders/background.fs
Normal file
11
resources/shaders/background.fs
Normal file
|
@ -0,0 +1,11 @@
|
|||
#version 110
|
||||
|
||||
uniform vec4 top_color;
|
||||
uniform vec4 bottom_color;
|
||||
|
||||
varying vec2 tex_coord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = mix(bottom_color, top_color, tex_coord.y);
|
||||
}
|
9
resources/shaders/background.vs
Normal file
9
resources/shaders/background.vs
Normal file
|
@ -0,0 +1,9 @@
|
|||
#version 110
|
||||
|
||||
varying vec2 tex_coord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = gl_Vertex;
|
||||
tex_coord = gl_MultiTexCoord0.xy;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue