mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-26 13:08:30 +00:00
22 lines
399 B
GLSL
22 lines
399 B
GLSL
#version 100
|
|
|
|
precision mediump float;
|
|
|
|
// 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;
|
|
}
|