mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Start moving GL shaders to gfx/drivers/gl_shaders
This commit is contained in:
parent
6144ca0e31
commit
8b6abde2f9
10
gfx/drivers/gl_shaders/modern_alpha_blend_glsl.frag.h
Normal file
10
gfx/drivers/gl_shaders/modern_alpha_blend_glsl.frag.h
Normal file
@ -0,0 +1,10 @@
|
||||
static const char *stock_fragment_modern_blend =
|
||||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D Texture;\n"
|
||||
"varying vec2 tex_coord;\n"
|
||||
"varying vec4 color;\n"
|
||||
"void main() {\n"
|
||||
" gl_FragColor = color * texture2D(Texture, tex_coord);\n"
|
||||
"}";
|
15
gfx/drivers/gl_shaders/modern_alpha_blend_glsl.vert.h
Normal file
15
gfx/drivers/gl_shaders/modern_alpha_blend_glsl.vert.h
Normal file
@ -0,0 +1,15 @@
|
||||
static const char *stock_vertex_modern_blend =
|
||||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec2 TexCoord;\n"
|
||||
"attribute vec2 VertexCoord;\n"
|
||||
"attribute vec4 Color;\n"
|
||||
"uniform mat4 MVPMatrix;\n"
|
||||
"varying vec2 tex_coord;\n"
|
||||
"varying vec4 color;\n"
|
||||
"void main() {\n"
|
||||
" gl_Position = MVPMatrix * vec4(VertexCoord, 0.0, 1.0);\n"
|
||||
" tex_coord = TexCoord;\n"
|
||||
" color = Color;\n"
|
||||
"}";
|
@ -170,32 +170,8 @@ static const char *stock_fragment_legacy =
|
||||
" gl_FragColor = color * texture2D(Texture, gl_TexCoord[0].xy);\n"
|
||||
"}";
|
||||
|
||||
static const char *stock_vertex_modern_blend =
|
||||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"#endif\n"
|
||||
"attribute vec2 TexCoord;\n"
|
||||
"attribute vec2 VertexCoord;\n"
|
||||
"attribute vec4 Color;\n"
|
||||
"uniform mat4 MVPMatrix;\n"
|
||||
"varying vec2 tex_coord;\n"
|
||||
"varying vec4 color;\n"
|
||||
"void main() {\n"
|
||||
" gl_Position = MVPMatrix * vec4(VertexCoord, 0.0, 1.0);\n"
|
||||
" tex_coord = TexCoord;\n"
|
||||
" color = Color;\n"
|
||||
"}";
|
||||
|
||||
static const char *stock_fragment_modern_blend =
|
||||
"#ifdef GL_ES\n"
|
||||
"precision mediump float;\n"
|
||||
"#endif\n"
|
||||
"uniform sampler2D Texture;\n"
|
||||
"varying vec2 tex_coord;\n"
|
||||
"varying vec4 color;\n"
|
||||
"void main() {\n"
|
||||
" gl_FragColor = color * texture2D(Texture, tex_coord);\n"
|
||||
"}";
|
||||
#include "../drivers/gl_shaders/modern_alpha_blend_glsl.vert.h"
|
||||
#include "../drivers/gl_shaders/modern_alpha_blend_glsl.frag.h"
|
||||
|
||||
static const char *stock_vertex_core_blend =
|
||||
"in vec2 TexCoord;\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user