mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
19 lines
498 B
Text
19 lines
498 B
Text
uniform vec4 _CenterRadius;
|
|
uniform sampler2D _MainTex;
|
|
uniform mat4 _RotationMatrix;
|
|
void main ()
|
|
{
|
|
vec2 tmpvar_1;
|
|
tmpvar_1 = gl_TexCoord[0].xy;
|
|
vec4 tmpvar_2;
|
|
tmpvar_2.zw = vec2(0.0, 0.0);
|
|
tmpvar_2.xy = tmpvar_1;
|
|
vec2 tmpvar_3;
|
|
tmpvar_3 = (tmpvar_1 / _CenterRadius.zw);
|
|
gl_FragData[0] = texture2D (_MainTex, (mix ((_RotationMatrix * tmpvar_2).xy, tmpvar_1, vec2(min (1.0,
|
|
sqrt(dot (tmpvar_3, tmpvar_3))
|
|
))) + _CenterRadius.xy));
|
|
}
|
|
|
|
|
|
// inputs: 1, stats: 8 alu 1 tex 0 flow
|