Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12096 was 12091, checked in by wiesep, 6 years ago

Updated programs and adjusted Material to work with GLSL>150

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.