diff options
Diffstat (limited to 'tests/auto/render/gltfplugins/ontopmaterial.frag')
-rw-r--r-- | tests/auto/render/gltfplugins/ontopmaterial.frag | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/render/gltfplugins/ontopmaterial.frag b/tests/auto/render/gltfplugins/ontopmaterial.frag new file mode 100644 index 000000000..2434f5ac8 --- /dev/null +++ b/tests/auto/render/gltfplugins/ontopmaterial.frag @@ -0,0 +1,14 @@ +#version 150 core + +uniform vec4 handleColor; +uniform float customAlpha; + +uniform sampler2D customTexture; + +out vec4 fragColor; + +void main() +{ + vec3 customColor = texture(customTexture, vec2(0.4, 0.4)).rgb; + fragColor = vec4(handleColor.xy, customColor.z, customAlpha); +} |