mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Replace the modern snow glsl vertex shader
This commit is contained in:
parent
66795c35cc
commit
4e74375356
@ -1,12 +1,16 @@
|
|||||||
#include "shaders_common.h"
|
#include "shaders_common.h"
|
||||||
|
|
||||||
|
/* Need to duplicate these to work around broken stuff on Android.
|
||||||
|
* Must enforce alpha = 1.0 or 32-bit games can potentially go black. */
|
||||||
static const char *stock_vertex_xmb_snow = GLSL(
|
static const char *stock_vertex_xmb_snow = GLSL(
|
||||||
in vec3 VertexCoord;
|
attribute vec2 TexCoord;
|
||||||
uniform float time;
|
attribute vec2 VertexCoord;
|
||||||
|
attribute vec4 Color;
|
||||||
|
uniform mat4 MVPMatrix;
|
||||||
|
varying vec2 tex_coord;
|
||||||
|
|
||||||
void main()
|
void main() {
|
||||||
{
|
gl_Position = MVPMatrix * vec4(VertexCoord, 0.0, 1.0);
|
||||||
vec3 v = vec3(VertexCoord.x, 0.0, VertexCoord.y);
|
tex_coord = TexCoord;
|
||||||
gl_Position = vec4(v, 1.0);
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user