Shader测试样本
#version 300 es
precision highp float;
precision highp int;
#define HLSLCC_ENABLE_UNIFORM_BUFFERS 1
#if HLSLCC_ENABLE_UNIFORM_BUFFERS
#define UNITY_UNIFORM
#else
#define UNITY_UNIFORM uniform
#endif
#define UNITY_SUPPORTS_UNIFORM_LOCATION 1
#if UNITY_SUPPORTS_UNIFORM_LOCATION
#define UNITY_LOCATION(x) layout(location = x)
#define UNITY_BINDING(x) layout(binding = x, std140)
#else
#define UNITY_LOCATION(x)
#define UNITY_BINDING(x) layout(std140)
#endif
uniform vec4 _Color;
uniform float _Dither;
layout(location = 0) out mediump vec4 SV_Target0;
vec2 u_xlat0;
bool u_xlatb0;
void main()
{
vec4 hlslcc_FragCoord = vec4(gl_FragCoord.xyz, 1.0/gl_FragCoord.w);
u_xlat0.xy = floor(hlslcc_FragCoord.xy);
u_xlat0.xy = u_xlat0.xy * vec2(0.5, 0.5);
u_xlat0.x = u_xlat0.y + u_xlat0.x;
u_xlat0.x = fract(u_xlat0.x);
u_xlat0.x = (-u_xlat0.x) + -1.0;
u_xlat0.x = _Dither * u_xlat0.x + 1.0;
u_xlatb0 = u_xlat0.x<0.0;
if(u_xlatb0){discard;}
SV_Target0 = _Color;
return;
}