Skip to content

Commit

Permalink
Fixes incorrect values in example. See issue processing#1021.
Browse files Browse the repository at this point in the history
  • Loading branch information
JetStarBlues committed Apr 22, 2021
1 parent 1d974b1 commit b487344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/examples/assets/uniforms.frag
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ vec4 poly(float x, float y, float size, float sides, float rotation, vec3 col){

void main() {

vec2 center = resolution * 1.0; // draw the shape at the center of the screen
float size = resolution.y * 0.5; // make the shape a quarter of the screen height
vec2 center = resolution * 0.5; // draw the shape at the center of the screen
float size = resolution.y * 0.25; // make the shape a quarter of the screen height
float sides = mod(floor(mouse), 7.0) + 3.0; // slowly increase the sides, when it reaches 10 sides, go back down to 3
float rotation = time; // rotation is in radians, but for time it doesnt really matter

Expand Down

0 comments on commit b487344

Please sign in to comment.