mirror of https://github.com/PCSX2/pcsx2.git
1df5b7ef7a
Explanation, because this gives me a headache and this might save someone else one (or I might be wrong and they might see why): in D3D10, 0.0 points to the centre of the leftmost texel and 1.0 points one texel to the right of the rightmost texel, so to map a UNORM uniformly across a texel we need to multiply the input by (w-1)/w. In D3D9 0.0 points to the left edge of the leftmost texel and 1.0 to the right edge of the rightmost texel so after the multiplication we add 1/2w. Actual texture sampling is probably not right for at least one of D3D9 and D3D10, but this headache is killing me. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5279 96395faa-99c1-11dd-bbfe-3dabce05a288 |
||
---|---|---|
3rdparty | ||
bin | ||
cmake | ||
common | ||
debian-unstable-upstream | ||
fps2bios | ||
linux_various | ||
locales | ||
nsis | ||
pcsx2 | ||
plugins | ||
tools | ||
CMakeLists.txt | ||
COPYING.GPLv2 | ||
COPYING.GPLv3 | ||
COPYING.LGPLv2.1 | ||
COPYING.LGPLv3 | ||
build.sh | ||
clean_msvc.cmd | ||
pcsx2-codeblocks.workspace | ||
pcsx2_suite_2008.sln | ||
pcsx2_suite_2010.sln | ||
rebuild.sh |