2024-08-13 21:29:47 +02:00
|
|
|
struct Input{float2 uvt;};void s(Input u,inout SurfaceOutput o){float2 p=u.uvt*54;uint t[]={0x2f00576f,0x33f2daf7,0x3b3e892f,0x341ab0cd,0x38fce4f6,0x2c0c8121,0x36653813,0x1de2677e,0x25455a65,0x3bc4bab6,0x62e85d3a,0x339f30cb,0x00e601a0,0x1b42071d,0x0160b0cc,0x2545c17d,0x42927f2b,0x0173e843,0x42a04f69,0x1bae3b23,0x7ae9f5d3,0x7ad81060,0x47bc061a,0x5645fb02,0x45d57c0b,0x0097e1a0,0x1b421353,0x42b99370,0x3e054431,0x3d6193f0,0x407f4b63,0x7aea1ee5,0x7d973b1b,0x00d84751,0x39326e16,0x874b0f62,0x0772bf37,0x0a5151d7,0x13d7e2f3,0x114613ea,0x2c118dd1,0x027939a6,0x09ebf6a8,0x0a032f51,0x0a5104a9,0x0eecb4b2,0x0772a631,0x0cc250ea,0x07996b42,0x114dc95a,0x114f72f3,0x09eba745,0x2c11bd53,0x0a514fa9,0x07e08337,0x0ec63a62,0x114dc9a8,0x13b0d393,0x11559b85,0x2c1159a3,0x0ee64436,0x2c291541,0x113677a2,0x02b833d1,0x18f74ff2,0x02fe0548,0x18818ea5,0x0789fe29,0x02fe6a35,0x07631ef2,0x075b7fa2,0x16860542,0x078a7952,0x13a03a85,0x2c01ba9a,0x1136a9a2,0x09e38ce1,0x2c09a341,0x18a966a4,0x09d49a58,0x18f6d2a2,0x112ebcf2,0x076b6c31,0x02fdebf5,0x02a82e02,0x0ebe5342,0x1146c387,0x16317434,0x0a036249,0x2c11a4a3,0x1601cfa7,0x0ef4b8d8,0x1685ebf8,0x02a8ac92,0x0eece74a,0x0a50d2a6,0x04fa51a1,0x2c01ee23,0x09d469a2,0x04f29be4,0x2c11a6d4,0x056eed83,0x163064a8,0x0c3d9a39,0x14156997,0x0f330549,0x078b73e3,0x161232a4,0x04f98a02,0x09dd32a7,0x111f4fe2,0x09d46b26,0x0ed6a343,0x0501a68a,0x2c30cd87,0x168668a7,0x1685d2a2,0x16113952,0x13a06be6,0x05303ea5,0x0789cc24,0x07e09be8,0x02a0db02,0x050172f1,0x02fdeba2,0x02905953,0x02fded37,0x09cc6ba8,0x0a031922,0x056f0457,0x111f0cb2,0x62ac6a51,0x2d0e8154,0x698a6678,0x89a2f779,0x58e32ee5,0x2c5c93d0,0x4a1e6aa8,0x0443bbfc,0x07633670,0x388fd27c,0x8b3968c0,0x94fce1fd,0x50fc6d2e,0x49a97ec5,0x4fd5c5bd,0x5193028e,0x052e807b,0x84c32dd2,0x139ad402,0x06956c3e,0x15484249,0x0852c5a0,0x8191d3a6,0x4fd5c212,0x2620a9c7,0x461c927c,0x8daa68c0,0x81759c8a,0x7cebd1a6,0x4650a763,0x27d5667c,0x95ef760c,0x92a813f8,0x89b35921,0x1605cf4d,0x50d77912,0x58e8c654,0x6abbde35,0x12a9626e,0x4111faf8,0x4fbecf09,0x80314ccf,0x22f49288,0x92ae10b6,0x8441015a,0x4a7c0375,0x0fa5c3d3,0x55044bd4,0x5b61f200},R[]={0,234663,68679,2265159,3280003,5348,7376003,3185831,233604,6592806,6600966,2234534,34023,6182,8665390,6601774,4267074,301257,65,6330631,1088809,6210,337920,4262980,7642145,206118,3312673,72774,1049633,133250,2130978,3319079,1116225,229600,2240642,5286,6587686,6337838,3312809,6595878,2270697,585393,11512810,12923174,11953,33831,272866,7407687,7465,33826,5282,131202,32,166048,3179555,3213379,72768,7168,1118273,72955190,4260932,9570592,131200,211030020,266305,7375911,306601},A=p.x,C=p.g,i=A+(53-C)*54,c;if(i>170&&i<2150){c=(i-171)%11;c=c<2?(c<<4)+1:c==10?18:(t[(i-171)/11]>>(7-(c-2)&7)*4&15)+1;}else{i-=(i>171)*1979;c=t[i/5];for(i%=5;i<4;i++)c/=80;c%=80;}C=(p.g-C)*6;A=(p.x-A)*6;o.Albedo=(A<5)*R[c]>>(A+C*5)&1;}ENDCG}}
|