ofs | hex dump | ascii |
---|
0000 | 46 53 48 04 6a 16 ba b9 01 00 08 75 5f 70 61 72 61 6d 73 02 03 00 00 03 00 ab 02 00 00 75 73 69 | FSH.j......u_params..........usi |
0020 | 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 74 61 6c 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d | ng.namespace.metal;.struct.xlatM |
0040 | 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 7b 0a 20 20 66 6c 6f 61 74 33 20 76 5f 74 65 78 43 6f | tlShaderInput.{...float3.v_texCo |
0060 | 6f 72 64 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 | ord;.};.struct.xlatMtlShaderOutp |
0080 | 75 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 67 6c 5f 46 72 61 67 43 6f 6c 6f 72 3b 0a 7d 3b 0a 73 | ut.{...float4.gl_FragColor;.};.s |
00a0 | 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e 69 66 6f 72 6d 20 7b 0a 20 20 66 | truct.xlatMtlShaderUniform.{...f |
00c0 | 6c 6f 61 74 34 20 75 5f 70 61 72 61 6d 73 5b 33 5d 3b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 | loat4.u_params[3];.};.fragment.x |
00e0 | 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 78 6c 61 74 4d 74 6c 4d 61 69 6e 20 28 | latMtlShaderOutput.xlatMtlMain.( |
0100 | 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 5f 6d 74 6c 5f 69 20 5b 5b 73 74 61 67 | xlatMtlShaderInput._mtl_i.[[stag |
0120 | 65 5f 69 6e 5d 5d 2c 20 63 6f 6e 73 74 61 6e 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 55 6e | e_in]],.constant.xlatMtlShaderUn |
0140 | 69 66 6f 72 6d 26 20 5f 6d 74 6c 5f 75 20 5b 5b 62 75 66 66 65 72 28 30 29 5d 5d 29 0a 7b 0a 20 | iform&._mtl_u.[[buffer(0)]]).{.. |
0160 | 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 5f 6d 74 6c 5f 6f 3b 0a 20 20 66 | .xlatMtlShaderOutput._mtl_o;...f |
0180 | 6c 6f 61 74 34 20 74 6d 70 76 61 72 5f 31 20 3d 20 30 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 77 | loat4.tmpvar_1.=.0;...tmpvar_1.w |
01a0 | 20 3d 20 31 2e 30 3b 0a 20 20 74 6d 70 76 61 72 5f 31 2e 78 79 7a 20 3d 20 28 6d 69 78 20 28 66 | .=.1.0;...tmpvar_1.xyz.=.(mix.(f |
01c0 | 6c 6f 61 74 33 28 30 2e 31 2c 20 30 2e 38 2c 20 30 2e 32 29 2c 20 66 6c 6f 61 74 33 28 30 2e 31 | loat3(0.1,.0.8,.0.2),.float3(0.1 |
01e0 | 35 2c 20 30 2e 31 32 35 2c 20 30 2e 30 32 35 29 2c 20 5f 6d 74 6c 5f 69 2e 76 5f 74 65 78 43 6f | 5,.0.125,.0.025),._mtl_i.v_texCo |
0200 | 6f 72 64 2e 7a 29 20 2a 20 28 5f 6d 74 6c 5f 75 2e 75 5f 70 61 72 61 6d 73 5b 31 5d 2e 78 20 2a | ord.z).*.(_mtl_u.u_params[1].x.* |
0220 | 20 70 6f 77 20 28 0a 20 20 20 20 6d 61 78 20 28 28 31 2e 30 20 2d 20 73 71 72 74 28 64 6f 74 20 | .pow.(.....max.((1.0.-.sqrt(dot. |
0240 | 28 5f 6d 74 6c 5f 69 2e 76 5f 74 65 78 43 6f 6f 72 64 2e 78 79 2c 20 5f 6d 74 6c 5f 69 2e 76 5f | (_mtl_i.v_texCoord.xy,._mtl_i.v_ |
0260 | 74 65 78 43 6f 6f 72 64 2e 78 79 29 29 29 2c 20 30 2e 30 29 0a 20 20 2c 20 5f 6d 74 6c 5f 75 2e | texCoord.xy))),.0.0)...,._mtl_u. |
0280 | 75 5f 70 61 72 61 6d 73 5b 31 5d 2e 77 29 29 29 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 | u_params[1].w)));..._mtl_o.gl_Fr |
02a0 | 61 67 43 6f 6c 6f 72 20 3d 20 74 6d 70 76 61 72 5f 31 3b 0a 20 20 72 65 74 75 72 6e 20 5f 6d 74 | agColor.=.tmpvar_1;...return._mt |
02c0 | 6c 5f 6f 3b 0a 7d 0a 0a 00 | l_o;.}... |