blob: 3462062ac51f0e9deb1f07943ea4cb03fa8a05f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <metal_stdlib>
#pragma clang diagnostic ignored "-Wparentheses-equality"
using namespace metal;
struct xlatMtlShaderInput {
half3 inNormal;
};
struct xlatMtlShaderOutput {
half4 _glesFragData [[color(0)]];
};
struct xlatMtlShaderUniform {
};
fragment xlatMtlShaderOutput xlatMtlMain (xlatMtlShaderInput _mtl_i [[stage_in]], constant xlatMtlShaderUniform& _mtl_u [[buffer(0)]])
{
xlatMtlShaderOutput _mtl_o;
half4 c_1;
half3x3 tmpvar_2;
tmpvar_2[0].x = half(0.8164966);
tmpvar_2[0].y = half(-0.4082483);
tmpvar_2[0].z = half(-0.4082483);
tmpvar_2[1].x = half(0.0);
tmpvar_2[1].y = half(0.7071068);
tmpvar_2[1].z = half(-0.7071068);
tmpvar_2[2].x = half(0.5773503);
tmpvar_2[2].y = half(0.5773503);
tmpvar_2[2].z = half(0.5773503);
c_1.xyz = (tmpvar_2 * _mtl_i.inNormal);
c_1.w = half(0.0);
_mtl_o._glesFragData = c_1;
return _mtl_o;
}
// stats: 11 alu 0 tex 0 flow
// inputs: 1
// #0: inNormal (medium float) 3x1 [-1]
|