Add glMatrix
This commit is contained in:
parent
582979d3ed
commit
e88b4589d2
1 changed files with 212 additions and 359 deletions
|
|
@ -28,5 +28,6 @@ out vec4 fragmentColor;
|
|||
void main() {
|
||||
vec2 position = (vec3(gl_FragCoord.xy, 1.0) * transformUV).xy;
|
||||
vec4 previous = texture(distanceTexture, position);
|
||||
fragmentColor = smoothRainbow(previous.a);
|
||||
//fragmentColor = smoothRainbow(previous.a);
|
||||
fragmentColor = previous.a > 0.5 ? vec4(1.0, 1.0, 1.0, 1.0) : vec4(0.0, 0.0, 0.0, 1.0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue