2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

More work on fixNES integration

This commit is contained in:
Jack Andersen
2018-06-18 10:12:40 -10:00
parent 56b1e562ce
commit 9f1e6736b2
5 changed files with 1442 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ BOO_GLSL_BINDING_HEAD
"TBINDING0 uniform sampler2D tex;\n"
"void main()\n"
"{\n"
" colorOut = vtf.color * vec4(texture(tex, vtf.uv).bgr, 1.0);\n"
" colorOut = vtf.color * texture(tex, vtf.uv);\n"
"}\n";
#if _WIN32
@@ -94,7 +94,7 @@ static const char* FS_HLSL =
"\n"
"float4 main(in VertToFrag vtf) : SV_Target0\n"
"{\n"
" return vtf.color * float4(tex.Sample(samp, vtf.uv).bgr, 1.0);\n"
" return vtf.color * tex.Sample(samp, vtf.uv);\n"
"}\n";
#endif
@@ -145,7 +145,7 @@ static const char* FS_METAL =
" sampler clampSamp [[ sampler(4) ]],\n"
" texture2d<float> tex [[ texture(0) ]])\n"
"{\n"
" return vtf.color * float4(tex.sample(clampSamp, vtf.uv).bgr, 1.0);\n"
" return vtf.color * tex.sample(clampSamp, vtf.uv);\n"
"}\n";
#endif