Initial commit
This commit is contained in:
12
client/shaders/selection_shader/opengl_fragment.glsl
Normal file
12
client/shaders/selection_shader/opengl_fragment.glsl
Normal file
@@ -0,0 +1,12 @@
|
||||
uniform sampler2D baseTexture;
|
||||
|
||||
varying lowp vec4 varColor;
|
||||
varying mediump vec2 varTexCoord;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
vec2 uv = varTexCoord.st;
|
||||
vec4 color = texture2D(baseTexture, uv);
|
||||
color.rgb *= varColor.rgb;
|
||||
gl_FragColor = color;
|
||||
}
|
||||
14
client/shaders/selection_shader/opengl_vertex.glsl
Normal file
14
client/shaders/selection_shader/opengl_vertex.glsl
Normal file
@@ -0,0 +1,14 @@
|
||||
varying lowp vec4 varColor;
|
||||
varying mediump vec2 varTexCoord;
|
||||
|
||||
void main(void)
|
||||
{
|
||||
varTexCoord = inTexCoord0.st;
|
||||
gl_Position = mWorldViewProj * inVertexPosition;
|
||||
|
||||
#ifdef GL_ES
|
||||
varColor = inVertexColor.bgra;
|
||||
#else
|
||||
varColor = inVertexColor;
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user