mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-12 05:05:26 +02:00
Fix XMAD shader instruction, gl_FrontFacing and enable face culling (#583)
* Fix XMAD shader instruction implementation * Fix gl_FrontFacing constant value * Enable face culling again * Fix typo
This commit is contained in:
@@ -845,9 +845,7 @@ namespace Ryujinx.Graphics.Gal.Shader
|
||||
{
|
||||
case GlslDecl.PointCoordAttrX: return "gl_PointCoord.x";
|
||||
case GlslDecl.PointCoordAttrY: return "gl_PointCoord.y";
|
||||
|
||||
//Note: It's a guess that Maxwell's face is 1 when gl_FrontFacing == true
|
||||
case GlslDecl.FaceAttr: return "(gl_FrontFacing ? 1 : 0)";
|
||||
case GlslDecl.FaceAttr: return "(gl_FrontFacing ? -1 : 0)";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user