mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20: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"
|
||||
|
||||
/* 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(
|
||||
in vec3 VertexCoord;
|
||||
uniform float time;
|
||||
attribute vec2 TexCoord;
|
||||
attribute vec2 VertexCoord;
|
||||
attribute vec4 Color;
|
||||
uniform mat4 MVPMatrix;
|
||||
varying vec2 tex_coord;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 v = vec3(VertexCoord.x, 0.0, VertexCoord.y);
|
||||
gl_Position = vec4(v, 1.0);
|
||||
void main() {
|
||||
gl_Position = MVPMatrix * vec4(VertexCoord, 0.0, 1.0);
|
||||
tex_coord = TexCoord;
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user