Fix inverted bug

This commit is contained in:
schmelczerandras 2020-10-04 09:36:10 +02:00
parent d1dd360d83
commit 5723b91b32
3 changed files with 11 additions and 18 deletions

View file

@ -11,16 +11,12 @@ varying vec2 position;
{declarations}
void main() {
float minDistance = abs(maxMinDistance);
float minDistance = maxMinDistance;
float color = 0.0;
float objectMinDistance, objectColor;
{functionCalls}
#ifndef NOT_EMPTY
minDistance = maxMinDistance;
#endif
gl_FragColor = vec4(minDistance * 8.0, color, 0.0, 1.0);
}