This project has moved and is read-only. For the latest updates, please go here.

PCF

Jan 18, 2014 at 11:25 PM
Edited Jan 18, 2014 at 11:27 PM
I have the question about shader model 4.0 9.3;
I didn't find any answer about Percentage-Closer Soft Shadows on windows store apps.
Can I use this technic because when i try
[unroll]
for(int i = 0; i < 9; ++i)
{
         lighting+= float(shadowMap.SampleCmpLevelZero(samShadow, 
               shadowTexCoords + offsets[i], depth));
}
I've got error X4539: sampler mismatch: sampler used inconsistently
On shader model 5.0 every think works great but not on 4.0 9.3
I
Jan 20, 2014 at 5:12 PM
This can be done with some feature level 9.3 drivers, but it's not as flexible as higher feature levels and you need to check the cap first to make sure your driver supports it.

This article has details: http://msdn.microsoft.com/en-us/library/windows/desktop/jj262110.aspx
Marked as answer by walbourn on 1/20/2014 at 11:33 PM