mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-01 23:48:30 +00:00
20 lines
373 B
GLSL
20 lines
373 B
GLSL
#version 120
|
|
|
|
// Input vertex attributes (from vertex shader)
|
|
varying vec2 fragTexCoord;
|
|
varying vec4 fragColor;
|
|
|
|
// Input uniform values
|
|
uniform sampler2D texture0;
|
|
uniform vec4 colDiffuse;
|
|
|
|
// NOTE: Add your custom variables here
|
|
uniform vec2 tiling;
|
|
|
|
void main()
|
|
{
|
|
vec2 texCoord = fragTexCoord*tiling;
|
|
|
|
gl_FragColor = texture2D(texture0, texCoord)*colDiffuse;
|
|
}
|