mirror of https://github.com/AxioDL/metaforce.git
Conform other platforms
This commit is contained in:
parent
145c152012
commit
c72ee72f6f
|
@ -130,12 +130,12 @@ std::string HLSL::GenerateReflectionExpr(ReflectionType type) const
|
||||||
{
|
{
|
||||||
case ReflectionType::None:
|
case ReflectionType::None:
|
||||||
default:
|
default:
|
||||||
return "float3(0.0, 0.0, 0.0);\n";
|
return "float3(0.0, 0.0, 0.0)";
|
||||||
case ReflectionType::Simple:
|
case ReflectionType::Simple:
|
||||||
return "reflectionTex.Sample(samp, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha;\n";
|
return "reflectionTex.Sample(samp, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||||
case ReflectionType::Indirect:
|
case ReflectionType::Indirect:
|
||||||
return "reflectionTex.Sample(samp, (reflectionIndTex.Sample(samp, vtf.reflectTcgs[0]).rg - "
|
return "reflectionTex.Sample(samp, (reflectionIndTex.Sample(samp, vtf.reflectTcgs[0]).rg - "
|
||||||
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha;\n";
|
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,12 +135,12 @@ std::string Metal::GenerateReflectionExpr(ReflectionType type) const
|
||||||
{
|
{
|
||||||
case ReflectionType::None:
|
case ReflectionType::None:
|
||||||
default:
|
default:
|
||||||
return "float3(0.0, 0.0, 0.0);\n";
|
return "float3(0.0, 0.0, 0.0)";
|
||||||
case ReflectionType::Simple:
|
case ReflectionType::Simple:
|
||||||
return "reflectionTex.sample(samp, vtf.reflectTcgs1).rgb * vtf.reflectAlpha;\n";
|
return "reflectionTex.sample(samp, vtf.reflectTcgs1).rgb * vtf.reflectAlpha";
|
||||||
case ReflectionType::Indirect:
|
case ReflectionType::Indirect:
|
||||||
return "reflectionTex.sample(samp, (reflectionIndTex.sample(samp, vtf.reflectTcgs0).rg - "
|
return "reflectionTex.sample(samp, (reflectionIndTex.sample(samp, vtf.reflectTcgs0).rg - "
|
||||||
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs1).rgb * vtf.reflectAlpha;\n";
|
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs1).rgb * vtf.reflectAlpha";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue