Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330 core
- uniform sampler2DArray texArray;
- uniform sampler2D texAtlas;
- in vec3 texCoords;
- out vec4 outColor;
- vec4 texture1;
- vec4 texture2;
- void main()
- {
- texture1 = texture(texArray, texCoords);
- texture2 = texelFetch(texAtlas, ivec2( int(texCoords.x), int(texCoords.y)), 0);
- outColor = texture1;
- if(texCoords.z < 1)
- outColor = texture2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement