mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
rsx/gl/vk: Enable use of native PCF shadows
This commit is contained in:
parent
5f66d0b996
commit
6a9eef0382
9 changed files with 51 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue