mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-18 07:41:47 +00:00
Convert window render sizes to floats
GLSL 1.10 is typesafe ([PDF specs](https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.10.pdf), page 22), so this shader will not load properly during build. It's not a super important change, but I came across it while playing with the examples on my pi.
This commit is contained in:
@@ -13,8 +13,8 @@ uniform vec4 colDiffuse;
|
|||||||
// NOTE: Add here your custom variables
|
// NOTE: Add here your custom variables
|
||||||
|
|
||||||
// NOTE: Render size values should be passed from code
|
// NOTE: Render size values should be passed from code
|
||||||
const float renderWidth = 800;
|
const float renderWidth = 800.0;
|
||||||
const float renderHeight = 450;
|
const float renderHeight = 450.0;
|
||||||
|
|
||||||
float radius = 250.0;
|
float radius = 250.0;
|
||||||
float angle = 0.8;
|
float angle = 0.8;
|
||||||
|
Reference in New Issue
Block a user