23 lines
No EOL
5.4 KiB
GLSL
23 lines
No EOL
5.4 KiB
GLSL
Shader"S"{SubShader{Pass{CGPROGRAM#pragma vertex a
|
|
#pragma fragment f
|
|
#include"UnityCG.cginc"
|
|
#define w const uint
|
|
struct A{float4 v:POSITION;float2 u:TEXCOORD0;UNITY_VERTEX_INPUT_INSTANCE_ID};struct V{float2 u:TEXCOORD0;float4 v:SV_POSITION;UNITY_VERTEX_OUTPUT_STEREO};
|
|
V a(A v){V o;UNITY_SETUP_INSTANCE_ID(v);UNITY_INITIALIZE_OUTPUT(V,o);UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);o.v=UnityObjectToClipPos(v.v);o.u=v.u;return o;}
|
|
float3 f(V U):SV_Target{
|
|
w t[]={0x13140b0e,0x0f151613,0x16171318,0x0c13140b,0x0e0f1517,0x190b1a1a,0x171b1c19,0x1d1e1c1d,0x1f202122,0x150b2324,0x0b00250f,0x15260f11,0x000b2721,0x22150b23,0x240b0010,0x150b2324,0x0f282600,0x10272129,0x280d2a18,0x0e0f162b,0x2829262c,0x1b1c2d0d,0x2329280d,0x1627210e,0x0f102928,0x0f002e00,0x0d2f281a,0x26001829,0x2826271a,0x2615180d,0x26001f17,0x102a2f0b,0x26050025,0x30191e13,0x3132311e,0x3334102a,0x2f0b2603,0x00183032,0x35361b1e,0x1e1d3701,0x342b3331,0x3238393a,0x351d3235,0x36393133,0x192b3239,0x31331332,0x1f331b35,0x3931373b,0x341a2615,0x180d2600,0x3a17102a,0x2f0b2603,0x00183032,0x35361b1e,0x1e1d3701,0x34102a2f,0x0b260500,0x2530133a,0x39191e13,0x3132311e,0x33342b33,0x31323839,0x3a351d32,0x3536391e,0x2b32192b,0x32391332,0x351d351e,0x3b34273a,0x000b3c1f,0x00253d17,0x3a002f34,0x2b333132,0x38391335,0x322b1939,0x31331332,0x1f331b35,0x3931373c,0x253d342b,0x33313238,0x39313331,0x32311f3e,0x313f3539,0x1e2b3219,0x2b323c3a,0x122f3d34,0x2b333132,0x38393133,0x3132311f,0x3e313f35,0x393a351d,0x32353639,0x1e2b3219,0x2b323913,0x32351d35,0x1e3c2f3d,0x342f2d25,0x402b2829,0x262c1e0c,0x410f0d26,0x322f1b2a,0x2922192f,0x1a3c252d,0x253d342f,0x2d184025,0x2d183415,0x0f261815,0x28002f34,0x3b27102a,0x2f0b2604,0x00103c3a,0x002b3d30,0x133a3932,0x0b15230f,0x2617272e,0x00264243,0x40173b34,0x272e003e,0x40050108,0x01342e00,0x0c400507,0x0334272e,0x00444243,0x40170112,0x050a0104,0x0a0a0207,0x09120205,0x01070505,0x09010112,0x03050405,0x07080805,0x05120305,0x04050805,0x07060712,0x0402020a,0x03080105,0x01120601,0x05070103,0x09050912,0x03010307,0x02040a06,0x03120602,0x02090409,0x03080312,0x03050506,0x03050303,0x05120302,0x02030401,0x0a020312,0x03020102,0x09040702,0x07120405,0x09050209,0x03051207,0x04030605,0x05011203,0x0808030a,0x03050901,0x12030202,0x03060708,0x07091205,0x03020806,0x0a010501,0x120a0705,0x01030305,0x12020405,0x12050802,0x01020607,0x05091204,0x05090502,0x09090912,0x020a0908,0x03011204,0x05070104,0x01010901,0x12020407,0x05020604,0x0701120a,0x08050208,0x07011203,0x05050605,0x09070501,0x12070404,0x01070401,0x12050908,0x07040905,0x07051205,0x08020305,0x07030803,0x12030505,0x06060801,0x09091205,0x09090207,0x03080603,0x12030202,0x01080504,0x04071206,0x0a0a0505,0x030a0807,0x12040709,0x05010a0a,0x03011204,0x04020307,0x08041202,0x030a0304,0x02080512,0x04090307,0x03051206,0x07080503,0x05120805,0x06020707,0x01091203,0x0808010a,0x070a0401,0x12030409,0x09090112,0x02040505,0x02090909,0x01120301,0x06070607,0x06020312,0x04020208,0x0402040a,0x03120607,0x08050307,0x12020309,0x12060809,0x09090112,0x07060a06,0x08080712,0x05020a05,0x05040312,0x05080501,0x0a020a07,0x09120201,0x05050602,0x070a0a03,0x12060a02,0x01070306,0x07011205,0x020a0505,0x04091206,0x0105060a,0x060a0407,0x12060902,0x0106030a,0x07011202,0x01070302,0x01060309,0x12060909,0x06090401,0x05011205,0x09011206,0x09090902,0x09060701,0x12080208,0x01010605,0x05120501,0x05090209,0x04010512,0x03010a0a,0x09060803,0x09120405,0x07040803,0x09011202,0x01050908,0x02010202,0x03120205,0x070a0505,0x01011203,0x07090801,0x07020305,0x12030104,0x050a0206,0x03011203,0x01060706,0x07030607,0x12060105,0x060a0605,0x09091202,0x01070308,0x01080312,0x05070608,0x02060312,0x050a0206,0x03011208,0x0206070a,0x05080312,0x08030a06,0x06020a01,0x12020407,0x04050a09,0x0305120a,0x06080106,0x0a031206,0x0506040a,0x03070803,0x123b3427,0x102a2f0b,0x26001112,0x2c402b2d,0x182d2c45,0x08063411,0x402b2d18,0x2d114508,0x06342718,0x29282600,0x0d122912,0x0e123812,0x36401134,0x38402c34,0x29403646,0x3c080547,0x383d4508,0x06342729,0x103c2948,0x400c4949,0x294a0c46,0x3e3d1727,0x0e403c29,0x470c3d4b,0x02023427,0x29103c0e,0x4a033d0d,0x403c0e4a,0x4a053d46,0x0234270f,0x2a1a0f00,0x29103c0e,0x40400201,0x3d0d4002,0x0934270f,0x2a1a0f00,0x0d403c26,0x423c2947,0x0c3d4c02,0x02434848,0x3c3c0847,0x3c3c0e47,0x033d4908,0x3d3d4505,0x3d490206,0x3d460234,0x273b0f2a,0x1a0f1727,0x29103c29,0x480c3d29,0x47403e34,0x270d4026,0x42294c05,0x4348483c,0x3c04473c,0x2949043d,0x3d45093d,0x49030606,0x343b2738,0x403c2c47,0x383d4507,0x3436403c,0x1147363d,0x45073427,0x150f2618,0x15280044,0x420d4348,0x483c3646,0x3845063d,0x4902453c,0x364a063d,0x34273b35,0x33371b1c,0x3b3b3b00,};
|
|
w L=4070;w b=462;
|
|
w F[]={0,490399168,140644800,243467744,243474656,311927040,504602848,202613952,511838272,244524224,211230912,210183616,34841824,6325440,277292480,211256768,421759040,9640224,134,471015648,34841888,198720,346030080,136415360,9741760,244548640,6330630,487638464,471246272,244557088,488162752,211074336,599442976,368409920,3312673,12923174,382624,567424,74516608,277096930,238880,134418880,205656512,311731392,567426,128,578880,6595776,4194432,474091968,1044516992,591062560,4194438,504595936,581052960,106210528,588583040,480,588818560,71700544,404818304,209985728,34637280,1048710112,14694400,268706124,203491520,205656256,504595488,10627072,4657152,491520,71569472,72955190,136349824,9570592,545392672,};
|
|
float x,y=U.u.y*75;x=U.u.x*75;
|
|
uint c,i,d,Y,X=x;Y=y;i=X+(74-Y)*75;
|
|
if(i>=b&&i<b+L){
|
|
d=(i-b)%11;
|
|
if(d<2)c=(d<<4)+1;
|
|
else if(d==10)c=18;
|
|
else c=(t[(i-b)/11]>>((7-((d-2)&7))*4)&15)+1;
|
|
}else{
|
|
if(i>b)i-=L;
|
|
c=t[i/4]>>((3-(i&3))*8)&255;}
|
|
Y=(y-Y)*6;X=(x-X)*6;
|
|
return F[c]>>(X+Y*5)&1*(X<5);
|
|
}ENDCG}}} |