mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
11 lines
188 B
Text
11 lines
188 B
Text
|
varying vec4 xlv_TEXCOORD0;
|
||
|
void main ()
|
||
|
{
|
||
|
vec4 res;
|
||
|
res.x = dFdx (xlv_TEXCOORD0.x);
|
||
|
res.y = dFdx (xlv_TEXCOORD0.y);
|
||
|
res.zw = fwidth (xlv_TEXCOORD0.xy);
|
||
|
gl_FragData[0] = res;
|
||
|
}
|
||
|
|