Skip to content

Commit

Permalink
Merge pull request #579 from jessp/patch-2
Browse files Browse the repository at this point in the history
Convert window render sizes to floats
  • Loading branch information
raysan5 authored Jul 21, 2018
2 parents 82e4a12 + f3d144b commit 3632b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/shaders/resources/shaders/glsl100/swirl.fs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ uniform vec4 colDiffuse;
// NOTE: Add here your custom variables

// NOTE: Render size values should be passed from code
const float renderWidth = 800;
const float renderHeight = 450;
const float renderWidth = 800.0;
const float renderHeight = 450.0;

float radius = 250.0;
float angle = 0.8;
Expand Down Expand Up @@ -43,4 +43,4 @@ void main()
vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;

gl_FragColor = vec4(color.rgb, 1.0);;
}
}

0 comments on commit 3632b16

Please sign in to comment.