mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 14:27:43 +00:00
Implement Metal fluid plane tessellation shader
This commit is contained in:
@@ -60,7 +60,7 @@ static const char* TextFS =
|
||||
"};\n"
|
||||
"\n"
|
||||
"fragment float4 fmain(VertToFrag vtf [[ stage_in ]],\n"
|
||||
" sampler clampSamp [[ sampler(2) ]],\n"
|
||||
" sampler clampSamp [[ sampler(3) ]],\n"
|
||||
" texture2d_array<float> tex [[ texture(0) ]])\n"
|
||||
"{\n"
|
||||
" float4 texel = tex.sample(clampSamp, vtf.uv.xy, vtf.uv.z);\n"
|
||||
@@ -113,7 +113,7 @@ static const char* ImgFS =
|
||||
"};\n"
|
||||
"\n"
|
||||
"fragment float4 fmain(VertToFrag vtf [[ stage_in ]],\n"
|
||||
" sampler clampSamp [[ sampler(2) ]],\n"
|
||||
" sampler clampSamp [[ sampler(3) ]],\n"
|
||||
" texture2d<float> tex [[ texture(0) ]])\n"
|
||||
"{\n"
|
||||
" float4 texel = tex.sample(clampSamp, vtf.uv);\n"
|
||||
|
||||
Reference in New Issue
Block a user