Add better color output
This commit is contained in:
parent
98d1fc9ca2
commit
7d2c74d6a8
6 changed files with 58 additions and 38 deletions
|
|
@ -13,10 +13,16 @@ varying vec2 position;
|
|||
{declarations}
|
||||
|
||||
void main() {
|
||||
float minDistance = maxMinDistance;
|
||||
float minDistance = abs(maxMinDistance);
|
||||
float color = 0.0;
|
||||
|
||||
float objectMinDistance, objectColor;
|
||||
|
||||
{functionCalls}
|
||||
|
||||
#ifndef NOT_EMPTY
|
||||
minDistance = maxMinDistance;
|
||||
#endif
|
||||
|
||||
// minDistance / 2.0: NDC to UV scale
|
||||
gl_FragColor = vec4(minDistance / 2.0, color, 0.0, 0.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue