rsx/gl/vk: Enable use of native PCF shadows

This commit is contained in:
kd-11 2017-06-12 12:42:30 +03:00
parent 5f66d0b996
commit 6a9eef0382
9 changed files with 51 additions and 16 deletions

View file

@ -107,6 +107,9 @@ void GLFragmentDecompilerThread::insertConstants(std::stringstream & OS)
std::string samplerType = PT.type;
int index = atoi(&PI.name.data()[3]);
if ((m_prog.shadow_textures & (1 << index)) > 0)
samplerType = "sampler2DShadow";
OS << "uniform " << samplerType << " " << PI.name << ";" << std::endl;
}
}