Shader tm

This commit is contained in:
2018-11-15 20:37:51 +01:00
parent 02448503c7
commit 9a3ecc06aa
11 changed files with 682 additions and 53 deletions

15
res/sh_Cursor.vertex Normal file
View File

@@ -0,0 +1,15 @@
attribute vec4 m_Position;
attribute vec2 m_TexCoord;
attribute float m_Time;
varying vec4 v_Color;
varying vec2 v_TexCoord;
uniform float g_FadeClock;
void main(void)
{
gl_Position = m_Position;
v_Color = vec4(1.0, 0.0, 0.0, 1.0);
v_TexCoord = m_TexCoord;
}

13
res/sh_Texture.frag Normal file
View File

@@ -0,0 +1,13 @@
#ifdef GL_ES
precision mediump float;
#endif
varying vec4 v_Color;
varying vec2 v_TexCoord;
uniform sampler2D m_Sampler;
void main(void)
{
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);//v_Color * texture2D(m_Sampler, v_TexCoord);
}