ofs | hex dump | ascii |
---|
0000 | 46 53 48 04 bd 54 7f 3b 00 00 9c 02 00 00 75 73 69 6e 67 20 6e 61 6d 65 73 70 61 63 65 20 6d 65 | FSH..T.;......using.namespace.me |
0020 | 74 61 6c 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d 74 6c 53 68 61 64 65 72 49 6e 70 75 74 20 7b | tal;.struct.xlatMtlShaderInput.{ |
0040 | 0a 20 20 66 6c 6f 61 74 34 20 76 5f 70 6f 73 3b 0a 7d 3b 0a 73 74 72 75 63 74 20 78 6c 61 74 4d | ...float4.v_pos;.};.struct.xlatM |
0060 | 74 6c 53 68 61 64 65 72 4f 75 74 70 75 74 20 7b 0a 20 20 66 6c 6f 61 74 34 20 67 6c 5f 46 72 61 | tlShaderOutput.{...float4.gl_Fra |
0080 | 67 44 61 74 61 5f 30 20 5b 5b 63 6f 6c 6f 72 28 30 29 5d 5d 3b 0a 20 20 66 6c 6f 61 74 34 20 67 | gData_0.[[color(0)]];...float4.g |
00a0 | 6c 5f 46 72 61 67 44 61 74 61 5f 31 20 5b 5b 63 6f 6c 6f 72 28 31 29 5d 5d 3b 0a 7d 3b 0a 73 74 | l_FragData_1.[[color(1)]];.};.st |
00c0 | 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 6c | ruct.xlatMtlShaderUniform.{...fl |
00e0 | 6f 61 74 34 20 75 5f 63 6f 6c 6f 72 3b 0a 7d 3b 0a 66 72 61 67 6d 65 6e 74 20 78 6c 61 74 4d 74 | oat4.u_color;.};.fragment.xlatMt |
0100 | 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 78 6c 61 74 4d | lShaderOutput.xlatMtlMain.(xlatM |
0120 | 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 65 5f 69 6e 5d | tlShaderInput._mtl_i.[[stage_in] |
0140 | 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 69 66 6f 72 6d | ],.constant.xlatMtlShaderUniform |
0160 | 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 20 78 6c 61 74 | &._mtl_u.[[buffer(0)]]).{...xlat |
0180 | 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 6c 6f 61 74 20 | MtlShaderOutput._mtl_o;...float. |
01a0 | 74 6d 70 76 61 72 5f 31 3b 0a 20 20 74 6d 70 76 61 72 5f 31 20 3d 20 28 5f 6d 74 6c 5f 75 2e 75 | tmpvar_1;...tmpvar_1.=.(_mtl_u.u |
01c0 | 5f 63 6f 6c 6f 72 2e 77 20 2a 20 63 6c 61 6d 70 20 28 28 30 2e 30 33 20 2f 20 0a 20 20 20 20 28 | _color.w.*.clamp.((0.03./......( |
01e0 | 31 65 2d 30 35 20 2b 20 70 6f 77 20 28 28 28 5f 6d 74 6c 5f 69 2e 76 5f 70 6f 73 2e 7a 20 2f 20 | 1e-05.+.pow.(((_mtl_i.v_pos.z./. |
0200 | 5f 6d 74 6c 5f 69 2e 76 5f 70 6f 73 2e 77 29 20 2f 20 32 30 30 2e 30 29 2c 20 35 2e 30 29 29 0a | _mtl_i.v_pos.w)./.200.0),.5.0)). |
0220 | 20 20 29 2c 20 30 2e 30 31 2c 20 33 30 30 30 2e 30 29 29 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c | ..),.0.01,.3000.0));..._mtl_o.gl |
0240 | 5f 46 72 61 67 44 61 74 61 5f 30 20 3d 20 28 5f 6d 74 6c 5f 75 2e 75 5f 63 6f 6c 6f 72 20 2a 20 | _FragData_0.=.(_mtl_u.u_color.*. |
0260 | 74 6d 70 76 61 72 5f 31 29 3b 0a 20 20 5f 6d 74 6c 5f 6f 2e 67 6c 5f 46 72 61 67 44 61 74 61 5f | tmpvar_1);..._mtl_o.gl_FragData_ |
0280 | 31 20 3d 20 66 6c 6f 61 74 34 28 74 6d 70 76 61 72 5f 31 29 3b 0a 20 20 72 65 74 75 72 6e 20 5f | 1.=.float4(tmpvar_1);...return._ |
02a0 | 6d 74 6c 5f 6f 3b 0a 7d 0a 0a 00 | mtl_o;.}... |