Fix anti-aliasing
This commit is contained in:
parent
54cbaf3a12
commit
f73543f45d
2 changed files with 2 additions and 2 deletions
|
|
@ -24,5 +24,5 @@ void main() {
|
|||
|
||||
{functionCalls}
|
||||
|
||||
gl_FragColor = vec4(color.rgb, minDistance * 8.0);
|
||||
gl_FragColor = vec4(color.rgb, minDistance * 8.0 + 0.125);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ void main() {
|
|||
#if FLOAT_LINEAR_ENABLED
|
||||
distanceValue = minDistance;
|
||||
#else
|
||||
distanceValue = minDistance * 8.0;
|
||||
distanceValue = minDistance * 8.0 + 0.125;
|
||||
#endif
|
||||
|
||||
fragmentColor = color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue