diff options
| author | Ray <[email protected]> | 2018-07-21 19:37:35 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-07-21 19:37:35 +0200 |
| commit | 3632b160d567acb2b473ca45df78e6b9331a0b22 (patch) | |
| tree | 8d62495b896af5f4091d1b7871d3661469313a7b /examples | |
| parent | 82e4a12fd3bd902ab2d82db62685ccb558701f86 (diff) | |
| parent | f3d144bf0ea5265c40683ebb8e46b2feb769167a (diff) | |
| download | raylib-3632b160d567acb2b473ca45df78e6b9331a0b22.tar.gz raylib-3632b160d567acb2b473ca45df78e6b9331a0b22.zip | |
Merge pull request #579 from jessp/patch-2
Convert window render sizes to floats
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shaders/resources/shaders/glsl100/swirl.fs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/shaders/resources/shaders/glsl100/swirl.fs b/examples/shaders/resources/shaders/glsl100/swirl.fs index b969aab7..7807b807 100644 --- a/examples/shaders/resources/shaders/glsl100/swirl.fs +++ b/examples/shaders/resources/shaders/glsl100/swirl.fs @@ -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; @@ -43,4 +43,4 @@ void main() vec4 color = texture2D(texture0, tc/texSize)*colDiffuse*fragColor;; gl_FragColor = vec4(color.rgb, 1.0);; -}
\ No newline at end of file +} |
