Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL120/Example_TextureArrayPS.glsl @ 12412

Last change on this file since 12412 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.