mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-08 08:00:44 +01:00
don't transform depth to 0...1
This commit is contained in:
parent
5b7a0fa3f6
commit
c9b18efc03
@ -3609,7 +3609,7 @@ void LatteDecompiler_emitClauseCodeMSL(LatteDecompilerShaderContext* shaderConte
|
|||||||
// write point size
|
// write point size
|
||||||
if (shaderContext->analyzer.outputPointSize && shaderContext->analyzer.writesPointSize == false)
|
if (shaderContext->analyzer.outputPointSize && shaderContext->analyzer.writesPointSize == false)
|
||||||
src->add("out.pointSize = supportBuffer.pointSize;" _CRLF);
|
src->add("out.pointSize = supportBuffer.pointSize;" _CRLF);
|
||||||
src->add("out.position.z = (out.position.z + out.position.w) / 2.0;" _CRLF);
|
//src->add("out.position.z = (out.position.z + out.position.w) / 2.0;" _CRLF);
|
||||||
src->add("mesh.set_vertex(vertexIndex, out);" _CRLF);
|
src->add("mesh.set_vertex(vertexIndex, out);" _CRLF);
|
||||||
src->add("vertexIndex++;" _CRLF);
|
src->add("vertexIndex++;" _CRLF);
|
||||||
// increment transform feedback pointer
|
// increment transform feedback pointer
|
||||||
@ -4378,8 +4378,8 @@ void LatteDecompiler_emitMSLShader(LatteDecompilerShaderContext* shaderContext,
|
|||||||
|
|
||||||
if (rasterizationEnabled)
|
if (rasterizationEnabled)
|
||||||
{
|
{
|
||||||
if (shader->shaderType == LatteConst::ShaderType::Vertex && !shaderContext->options->usesGeometryShader)
|
//if (shader->shaderType == LatteConst::ShaderType::Vertex && !shaderContext->options->usesGeometryShader)
|
||||||
src->add("out.position.z = (out.position.z + out.position.w) / 2.0;" _CRLF);
|
// src->add("out.position.z = (out.position.z + out.position.w) / 2.0;" _CRLF);
|
||||||
|
|
||||||
// Return
|
// Return
|
||||||
if (!usesGeometryShader || shader->shaderType == LatteConst::ShaderType::Pixel)
|
if (!usesGeometryShader || shader->shaderType == LatteConst::ShaderType::Pixel)
|
||||||
|
Loading…
Reference in New Issue
Block a user