diff options
Diffstat (limited to 'deps/raylib/examples/models/resources/shaders/glsl330/skinning.fs')
-rw-r--r-- | deps/raylib/examples/models/resources/shaders/glsl330/skinning.fs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/deps/raylib/examples/models/resources/shaders/glsl330/skinning.fs b/deps/raylib/examples/models/resources/shaders/glsl330/skinning.fs new file mode 100644 index 0000000..d2d1868 --- /dev/null +++ b/deps/raylib/examples/models/resources/shaders/glsl330/skinning.fs @@ -0,0 +1,17 @@ +#version 330 + +// Input vertex attributes (from vertex shader) +in vec2 fragTexCoord; +in vec4 fragColor; + +// Output fragment color +out vec4 finalColor; + +uniform sampler2D texture0; +uniform vec4 colDiffuse; + +void main() +{ + vec4 texelColor = texture(texture0, fragTexCoord); + finalColor = texelColor*colDiffuse*fragColor; +} |