Fix inverted bug
This commit is contained in:
parent
d1dd360d83
commit
5723b91b32
3 changed files with 11 additions and 18 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,16 +13,12 @@ in vec2 position;
|
|||
out vec2 fragmentColor;
|
||||
|
||||
void main() {
|
||||
float minDistance = abs(maxMinDistance);
|
||||
float minDistance = maxMinDistance;
|
||||
float color = 0.0;
|
||||
|
||||
float objectMinDistance, objectColor;
|
||||
|
||||
{functionCalls}
|
||||
|
||||
#ifndef NOT_EMPTY
|
||||
minDistance = maxMinDistance;
|
||||
#endif
|
||||
|
||||
fragmentColor = vec2(minDistance, color);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue