mirror of https://github.com/AxioDL/metaforce.git
HLSL/Metal shader conformance
This commit is contained in:
parent
7d2370efe0
commit
ba0287159a
|
@ -46,7 +46,7 @@ static const char* FS =
|
|||
"\n"
|
||||
"float4 main(in VertToFrag vtf) : SV_Target0\n"
|
||||
"{\n"
|
||||
" return vtf.color * tex.Sample(samp, vtf.uv);\n"
|
||||
" return vtf.color * float4(tex.Sample(samp, vtf.uv).rgb, 1.0);\n"
|
||||
"}\n";
|
||||
|
||||
URDE_DECL_SPECIALIZE_MULTI_BLEND_SHADER(CTexturedQuadFilter)
|
||||
|
|
|
@ -48,7 +48,7 @@ static const char* FS =
|
|||
"\n"
|
||||
"fragment float4 fmain(VertToFrag vtf [[ stage_in ]], texture2d<float> tex [[ texture(0) ]])\n"
|
||||
"{\n"
|
||||
" return vtf.color * tex.sample(samp, vtf.uv);\n"
|
||||
" return vtf.color * float4(tex.sample(samp, vtf.uv).rgb, 1.0);\n"
|
||||
"}\n";
|
||||
|
||||
URDE_DECL_SPECIALIZE_MULTI_BLEND_SHADER(CTexturedQuadFilter)
|
||||
|
|
Loading…
Reference in New Issue