Attempt to fix T44056, dof high quality shader error in ATI cards.
ATI driver does not like declaration of gl_FragColor and glFragData in the same source file (even though only one of the two is ever referenced), just use one of the two.
This commit is contained in:
parent
79a68617b3
commit
c6ce8200dd
Notes:
blender-bot
2023-02-14 10:04:50 +01:00
Referenced by issue #44056, High Quality DOF Glitches when GFX Card does not Support it- ATI Cards
|
@ -107,7 +107,7 @@ void accumulate_pass(void) {
|
|||
if (dot(particlecoord, particlecoord) > r * r)
|
||||
discard;
|
||||
|
||||
gl_FragColor = color;
|
||||
gl_FragData[0] = color;
|
||||
}
|
||||
#define MERGE_THRESHOLD 4.0
|
||||
|
||||
|
@ -151,7 +151,7 @@ void final_pass(void) {
|
|||
finalcolor = mix(finalcolor, nearcolor, nearweight / totalweight);
|
||||
}
|
||||
|
||||
gl_FragColor = finalcolor;
|
||||
gl_FragData[0] = finalcolor;
|
||||
}
|
||||
|
||||
void main()
|
||||
|
|
Loading…
Reference in New Issue