mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-13 06:46:10 +00:00
Sync with boo shader cache
This commit is contained in:
@@ -65,9 +65,9 @@ static const char* ThermalPostMetal =
|
||||
" float4 tmulColor;\n"
|
||||
" float4 addColor;\n"
|
||||
"};\n"
|
||||
"static float4 ThermalPostFunc(thread VertToFrag& vtf, constant ThermalUniform& lu, texture2d<float> tex7, float4 colorIn)\n"
|
||||
"static float4 ThermalPostFunc(thread VertToFrag& vtf, constant ThermalUniform& lu, texture2d<float> extTex7, float4 colorIn)\n"
|
||||
"{\n"
|
||||
" return float4(tex7.sample(samp, vtf.extTcgs0).rrr * lu.tmulColor.rgb + lu.addColor.rgb, 1.0);\n"
|
||||
" return float4(extTex7.sample(samp, vtf.extTcgs0).rrr * lu.tmulColor.rgb + lu.addColor.rgb, 1.0);\n"
|
||||
"}\n"
|
||||
"\n";
|
||||
|
||||
@@ -89,11 +89,11 @@ static const char* MBShadowPostMetal =
|
||||
" float shadowId;\n"
|
||||
"};\n"
|
||||
"static float4 MBShadowPostFunc(thread VertToFrag& vtf, constant MBShadowUniform& su,\n"
|
||||
" texture2d<float> tex0, texture2d<float> tex1, texture2d<float> tex2, float4 colorIn)\n"
|
||||
" texture2d<float> extTex0, texture2d<float> extTex1, texture2d<float> extTex2, float4 colorIn)\n"
|
||||
"{\n"
|
||||
" float idTexel = tex0.sample(samp, vtf.extTcgs0).a;\n"
|
||||
" float sphereTexel = tex1.sample(samp, vtf.extTcgs1).a;\n"
|
||||
" float fadeTexel = tex2.sample(samp, vtf.extTcgs2).a;\n"
|
||||
" float idTexel = extTex0.sample(samp, vtf.extTcgs0).a;\n"
|
||||
" float sphereTexel = extTex1.sample(samp, vtf.extTcgs1).a;\n"
|
||||
" float fadeTexel = extTex2.sample(samp, vtf.extTcgs2).a;\n"
|
||||
" float val = ((fabs(idTexel - su.shadowId) < 0.001) ?\n"
|
||||
" (dot(vtf.mvNorm.xyz, su.shadowUp.xyz) * su.shadowUp.w) : 0.0) *\n"
|
||||
" sphereTexel * fadeTexel;\n"
|
||||
|
||||
Reference in New Issue
Block a user