2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 06:27:43 +00:00

Functioning XRay blur filter

This commit is contained in:
Jack Andersen
2016-08-19 18:22:13 -10:00
parent 9ca7f9c9e4
commit 25d808e2b9
37 changed files with 1042 additions and 100 deletions

View File

@@ -51,7 +51,7 @@ static const char* LightingHLSL =
"}\n";
static const char* MainPostHLSL =
"float4 MainPostFunc(in VertToFrag vtf, float4 colorIn)\n"
"static float4 MainPostFunc(in VertToFrag vtf, float4 colorIn)\n"
"{\n"
" float fogZ = (-vtf.mvPos.z - fog.start) * fog.rangeScale;\n"
" return lerp(fog.color, colorIn, saturate(exp2(-8.0 * fogZ)));\n"
@@ -64,7 +64,7 @@ static const char* ThermalPostHLSL =
" float4 mulColor;\n"
" float4 addColor;\n"
"};\n"
"float4 ThermalPostFunc(in VertToFrag vtf, float4 colorIn)\n"
"static float4 ThermalPostFunc(in VertToFrag vtf, float4 colorIn)\n"
"{\n"
" return float4(extTex7.Sample(samp, vtf.extTcgs[0]).rrr * mulColor.rgb + addColor.rgb, 1.0);\n"
"}\n"