mirror of https://github.com/AxioDL/metaforce.git
Correct indirect texture sampling swizzle
This commit is contained in:
parent
3759bf1b3d
commit
72b14a78a0
|
@ -141,7 +141,7 @@ std::string GLSL::GenerateReflectionExpr(ReflectionType type) const {
|
|||
case ReflectionType::Simple:
|
||||
return "texture(reflectionTex, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||
case ReflectionType::Indirect:
|
||||
return "texture(reflectionTex, (texture(reflectionIndTex, vtf.reflectTcgs[0]).rg - "
|
||||
return "texture(reflectionTex, (texture(reflectionIndTex, vtf.reflectTcgs[0]).ab - "
|
||||
"vec2(0.5, 0.5)) * vec2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ std::string HLSL::GenerateReflectionExpr(ReflectionType type) const {
|
|||
case ReflectionType::Simple:
|
||||
return "reflectionTex.Sample(reflectSamp, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||
case ReflectionType::Indirect:
|
||||
return "reflectionTex.Sample(reflectSamp, (reflectionIndTex.Sample(samp, vtf.reflectTcgs[0]).rg - "
|
||||
return "reflectionTex.Sample(reflectSamp, (reflectionIndTex.Sample(samp, vtf.reflectTcgs[0]).ab - "
|
||||
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ std::string Metal::GenerateReflectionExpr(ReflectionType type) const {
|
|||
case ReflectionType::Simple:
|
||||
return "reflectionTex.sample(reflectSamp, vtf.reflectTcgs1).rgb * vtf.reflectAlpha";
|
||||
case ReflectionType::Indirect:
|
||||
return "reflectionTex.sample(reflectSamp, (reflectionIndTex.sample(samp, vtf.reflectTcgs0).rg - "
|
||||
return "reflectionTex.sample(reflectSamp, (reflectionIndTex.sample(samp, vtf.reflectTcgs0).ab - "
|
||||
"float2(0.5, 0.5)) * float2(0.5, 0.5) + vtf.reflectTcgs1).rgb * vtf.reflectAlpha";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -481,6 +481,7 @@ Connection::Connection(int verbosityLevel) {
|
|||
BlenderLog.report(logvisor::Fatal, _SYS_STR("Unable to find blender at '%s'"), DEFAULT_BLENDER_BIN);
|
||||
} else if (!strcmp(lineBuf, "NOADDON")) {
|
||||
_closePipe();
|
||||
if (blenderAddonPath != _SYS_STR("SKIPINSTALL"))
|
||||
InstallAddon(blenderAddonPath.c_str());
|
||||
++installAttempt;
|
||||
if (installAttempt >= 2)
|
||||
|
|
Loading…
Reference in New Issue