Conform other platforms

This commit is contained in:
Phillip Stephens 2017-05-29 01:18:54 -07:00
parent 145c152012
commit c72ee72f6f
2 changed files with 6 additions and 6 deletions

View File

@ -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";
} }
} }

View File

@ -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";
} }
} }