Commit c9a34ff7 authored by amandaghassaei's avatar amandaghassaei

finished

parent 4f810c00
......@@ -30,7 +30,7 @@
void main() {
vec2 fragCoord = gl_FragCoord.xy;
vec2 dir = fragCoord - vec2(0.5, 0.5) - u_obstaclePosition;
vec2 dir = fragCoord - 3.0*vec2(0.5, 0.5) - u_obstaclePosition;//not sure where this fac of 3 came from?
float dist = length(dir);
if (dist < u_obstacleRad){
gl_FragColor = vec4(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment