Sources/Quad2D.fs
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
A quad fragment shader for texture 2D. |
*/ |
#version 410 core |
in vec2 fragTexCoord; |
out vec4 fragColor; |
uniform sampler2D tex; |
void main() |
{ |
fragColor = texture(tex, fragTexCoord); |
} |
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-12-10