Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/GLSL120/Example_TextureArrayPS.glsl @ 12306

Last change on this file since 12306 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 378 bytes
Line 
1#version 120
2#extension GL_EXT_texture_array : enable
3
4uniform sampler2DArray TextureArrayTex;
5varying vec3 oUv;
6
7void main(void)
8{
9        vec3 texcoord;
10        texcoord = oUv;
11        texcoord.z = floor(texcoord.z);
12    vec4 c0 = texture2DArray(TextureArrayTex, texcoord);
13        texcoord.z += 1.0;
14    vec4 c1 = texture2DArray(TextureArrayTex, texcoord);
15
16        gl_FragColor = mix(c0, c1, fract(oUv.z));
17}
Note: See TracBrowser for help on using the repository browser.