mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Texture Tiling Example - luis605 (#3353)
* Texture Tiling Example - luis605 * Removed SetTraceLogLevel(LOG_WARNING);
This commit is contained in:
14
examples/shaders/resources/shaders/glsl330/tiling.fs
Normal file
14
examples/shaders/resources/shaders/glsl330/tiling.fs
Normal file
@ -0,0 +1,14 @@
|
||||
#version 330 core
|
||||
|
||||
uniform sampler2D diffuseMap;
|
||||
uniform vec2 tiling;
|
||||
|
||||
in vec2 fragTexCoord;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 texCoord = fragTexCoord * tiling;
|
||||
fragColor = texture(diffuseMap, texCoord);
|
||||
}
|
||||
Reference in New Issue
Block a user