mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-04 13:21:06 -05:00
15 lines
361 B
Text
15 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]
|