Merge pull request #7673 from Jupeyy/pr_fix_ms_sample_accuracy

Fix multi sampling accuracy
This commit is contained in:
Dennis Felsing 2023-12-18 07:52:17 +00:00 committed by GitHub
commit 173345df74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@ uniform sampler2DArray gTextureSampler;
uniform vec4 gVertColor;
#ifdef TW_TILE_TEXTURED
noperspective in vec3 TexCoord;
noperspective centroid in vec3 TexCoord;
#endif
out vec4 FragClr;

View file

@ -10,7 +10,7 @@ layout(push_constant) uniform SVertexColorBO {
} gColorBO;
#ifdef TW_TILE_TEXTURED
layout (location = 0) noperspective in vec3 TexCoord;
layout (location = 0) noperspective centroid in vec3 TexCoord;
#endif
layout (location = 0) out vec4 FragClr;

View file

@ -84,6 +84,8 @@ void CGLSLCompiler::ParseLine(std::string &Line, const char *pReadLine, EGLSLSha
//search for 'in' or 'out'
while(*pBuff && ((*pBuff != 'i' || *(pBuff + 1) != 'n') && (*pBuff != 'o' || (*(pBuff + 1) && *(pBuff + 1) != 'u') || *(pBuff + 2) != 't')))
{
// append anything that is inbetween noperspective & in/out vars
Line.push_back(*pBuff);
++pBuff;
}