projection fixes !

This commit is contained in:
Ced2911 2013-08-25 14:02:21 +02:00
parent 28482b0341
commit 40da0262c8
4 changed files with 7 additions and 3 deletions

View File

@ -328,7 +328,7 @@ void LinkedShader::updateUniforms() {
// Convert matrices !
ConvertMatrices(flippedMatrix);
//SetMatrix(u_proj, flippedMatrix.getReadPtr());
SetMatrix(u_proj, flippedMatrix.getReadPtr());
}
if (u_proj_through != 0 && (dirtyUniforms & DIRTY_PROJTHROUGHMATRIX))
{

View File

@ -155,9 +155,9 @@ void GenerateVertexShader(int prim, char *buffer, bool useHWTransform) {
}
if (gstate.isModeThrough()) {
WRITE(p, "float4x4 u_proj_through;\n");
WRITE(p, "float4x4 u_proj_through:register(c0);\n");
} else {
WRITE(p, "float4x4 u_proj;\n");
WRITE(p, "float4x4 u_proj:register(c8);\n");
// Add all the uniforms we'll need to transform properly.
}
if (useHWTransform || !hasColor)

View File

@ -357,6 +357,7 @@
<ClCompile Include="Directx9\helper\global.cpp" />
<ClCompile Include="Directx9\IndexGenerator.cpp" />
<ClCompile Include="Directx9\ShaderManager.cpp" />
<ClCompile Include="Directx9\Spline.cpp" />
<ClCompile Include="Directx9\StateMapping.cpp" />
<ClCompile Include="Directx9\TextureCache.cpp" />
<ClCompile Include="Directx9\TextureScaler.cpp" />

View File

@ -207,5 +207,8 @@
<ClCompile Include="Directx9\helper\global.cpp">
<Filter>Directx9\helper</Filter>
</ClCompile>
<ClCompile Include="Directx9\Spline.cpp">
<Filter>Directx9</Filter>
</ClCompile>
</ItemGroup>
</Project>