Fix #207, FXAA orientation under D3D

--HG--
branch : develop
This commit is contained in:
kaetemi 2014-10-01 23:24:56 +02:00
parent 7729c3b65c
commit bb9d0d91d3

View file

@ -148,7 +148,7 @@ CFXAA::CFXAA(NL3D::UDriver *driver) : m_Driver(driver), m_PP(NULL), m_VP(NULL),
m_QuadUV.V2 = CVector(1.f, 1.f, 0.5f); m_QuadUV.V2 = CVector(1.f, 1.f, 0.5f);
m_QuadUV.V3 = CVector(0.f, 1.f, 0.5f); m_QuadUV.V3 = CVector(0.f, 1.f, 0.5f);
if (drv->textureCoordinateAlternativeMode()) /*if (drv->textureCoordinateAlternativeMode())
{ {
m_QuadUV.Uv0 = CUV(0.f, 1.f); m_QuadUV.Uv0 = CUV(0.f, 1.f);
m_QuadUV.Uv1 = CUV(1.f, 1.f); m_QuadUV.Uv1 = CUV(1.f, 1.f);
@ -156,12 +156,12 @@ CFXAA::CFXAA(NL3D::UDriver *driver) : m_Driver(driver), m_PP(NULL), m_VP(NULL),
m_QuadUV.Uv3 = CUV(0.f, 0.f); m_QuadUV.Uv3 = CUV(0.f, 0.f);
} }
else else
{ {*/
m_QuadUV.Uv0 = CUV(0.f, 0.f); m_QuadUV.Uv0 = CUV(0.f, 0.f);
m_QuadUV.Uv1 = CUV(1.f, 0.f); m_QuadUV.Uv1 = CUV(1.f, 0.f);
m_QuadUV.Uv2 = CUV(1.f, 1.f); m_QuadUV.Uv2 = CUV(1.f, 1.f);
m_QuadUV.Uv3 = CUV(0.f, 1.f); m_QuadUV.Uv3 = CUV(0.f, 1.f);
} /*}*/
/*CVertexBuffer &vb = m_VB; /*CVertexBuffer &vb = m_VB;
vb.clearValueEx(); vb.clearValueEx();