Go to the source code of this file.
◆ default_fragment_metal
| const char* default_fragment_metal |
|
inline |
Initial value:= R"(
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct main0_out
{
float4 FragColor [[color(0)]];
};
struct main0_in
{
float4 vColor [[user(locn0)]];
float2 vTexCoord [[user(locn1)]];
};
fragment main0_out main0(main0_in in [[stage_in]], texture2d<float> u_texture [[texture(0)]], sampler u_textureSmplr [[sampler(0)]])
{
main0_out out = {};
float4 tex = u_texture.sample(u_textureSmplr, in.vTexCoord);
if (tex.w < 0.100000001490116119384765625)
{
discard_fragment();
}
out.FragColor = tex * in.vColor;
return out;
})"
◆ default_vertex_metal
| const char* default_vertex_metal |
|
inline |