diff options
| author | Luís Almeida <[email protected]> | 2023-10-01 22:01:59 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-01 23:01:59 +0200 |
| commit | bc15c19518968878b68bbfe8eac3fe4297f11770 (patch) | |
| tree | 4a23093b41151d750c94bd057bb14d43e86dd170 /examples/shaders/resources | |
| parent | 7351240218849b1579db962f30e42fb982400c7e (diff) | |
| download | raylib-bc15c19518968878b68bbfe8eac3fe4297f11770.tar.gz raylib-bc15c19518968878b68bbfe8eac3fe4297f11770.zip | |
Texture Tiling Example - luis605 (#3353)
* Texture Tiling Example - luis605
* Removed SetTraceLogLevel(LOG_WARNING);
Diffstat (limited to 'examples/shaders/resources')
| -rw-r--r-- | examples/shaders/resources/shaders/glsl330/tiling.fs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/shaders/resources/shaders/glsl330/tiling.fs b/examples/shaders/resources/shaders/glsl330/tiling.fs new file mode 100644 index 00000000..6e7f5243 --- /dev/null +++ b/examples/shaders/resources/shaders/glsl330/tiling.fs @@ -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); +} |
