mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
14 lines
361 B
Text
14 lines
361 B
Text
#extension GL_EXT_texture_array : enable
|
|
uniform sampler2DArray myarr;
|
|
varying vec4 uv;
|
|
void main ()
|
|
{
|
|
gl_FragData[0] = ((texture2DArray (myarr, uv.xyz) + texture2DArray (myarr, uv.xyw)) + texture2DArray (myarr, uv.xyz, 1.5));
|
|
}
|
|
|
|
|
|
// stats: 2 alu 3 tex 0 flow
|
|
// inputs: 1
|
|
// #0: uv (high float) 4x1 [-1]
|
|
// textures: 1
|
|
// #0: myarr (high 2darray) 0x0 [-1]
|