bgfx/3rdparty/glsl-optimizer/tests/fragment/derivatives-out.txt

11 lines
230 B
Text
Raw Normal View History

2012-04-03 23:30:07 -04:00
varying vec4 xlv_TEXCOORD0;
void main ()
{
2012-10-07 23:41:18 -04:00
vec4 res_1;
res_1.x = dFdx(xlv_TEXCOORD0.x);
res_1.y = dFdx(xlv_TEXCOORD0.y);
res_1.zw = (abs(dFdx(xlv_TEXCOORD0.xy)) + abs(dFdy(xlv_TEXCOORD0.xy)));
gl_FragData[0] = res_1;
2012-04-03 23:30:07 -04:00
}