|
|
@ -222,7 +222,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc)
|
|
|
|
case CMaterial::InterpolatePrevious:
|
|
|
|
case CMaterial::InterpolatePrevious:
|
|
|
|
if (stage > 0)
|
|
|
|
if (stage > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ss << "float texop" << stage << "rgbAs = texop" << stage << ".a;" << std::endl;
|
|
|
|
ss << "float texop" << stage << "rgbAs = texop" << (stage - 1) << ".a;" << std::endl;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case CMaterial::InterpolateDiffuse:
|
|
|
|
case CMaterial::InterpolateDiffuse:
|
|
|
@ -268,7 +268,7 @@ void ppTexEnv(std::stringstream &ss, const CPPBuiltin &desc)
|
|
|
|
case CMaterial::InterpolatePrevious:
|
|
|
|
case CMaterial::InterpolatePrevious:
|
|
|
|
if (stage > 0)
|
|
|
|
if (stage > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ss << "float texop" << stage << "alphaAs = texop" << stage << ".a;" << std::endl;
|
|
|
|
ss << "float texop" << stage << "alphaAs = texop" << (stage - 1) << ".a;" << std::endl;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case CMaterial::InterpolateDiffuse:
|
|
|
|
case CMaterial::InterpolateDiffuse:
|
|
|
|