Skip to content

Commit 3632b16

Browse files
authored
Merge pull request raysan5#579 from jessp/patch-2
Convert window render sizes to floats
2 parents 82e4a12 + f3d144b commit 3632b16

File tree

1 file changed

+3
-3
lines changed
  • examples/shaders/resources/shaders/glsl100

1 file changed

+3
-3
lines changed

examples/shaders/resources/shaders/glsl100/swirl.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ uniform vec4 colDiffuse;
1313
// NOTE: Add here your custom variables
1414

1515
// NOTE: Render size values should be passed from code
16-
const float renderWidth = 800;
17-
const float renderHeight = 450;
16+
const float renderWidth = 800.0;
17+
const float renderHeight = 450.0;
1818

1919
float radius = 250.0;
2020
float angle = 0.8;
@@ -43,4 +43,4 @@ void main()
4343
vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;;
4444

4545
gl_FragColor = vec4(color.rgb, 1.0);;
46-
}
46+
}

0 commit comments

Comments
 (0)