2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

Implement Metal fluid plane tessellation shader

This commit is contained in:
Jack Andersen
2018-06-11 15:16:27 -10:00
parent 8f9d7da3ee
commit 1e36329ed4
12 changed files with 232 additions and 59 deletions

View File

@@ -142,7 +142,7 @@ static const char* FS_METAL =
"};\n"
"\n"
"fragment float4 fmain(VertToFrag vtf [[ stage_in ]],\n"
" sampler clampSamp [[ sampler(3) ]],\n"
" 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"