-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rshapes] Line drawing bug when using Camera2D #4075
Comments
Found the source of the issue. Adding 0.5f would center the pixel if using default camera but when using a diffrent camera it causes some issues.
Potential fixes:
|
@mfbulut Oh! Good catch! Reviewing it! |
4 tasks
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tested this on latest commit (commit/52f2a10db610d0e9f619fd7c521db08a876547d0)
Issue description
When using Camera2D Line drawing i want to draw lines from center of the screen to somewhere else here is code i used
Environment
I use Windows 11 with Nvdia graphics card more information below
INFO: GLFW platform: Win32
INFO: PLATFORM: DESKTOP (GLFW): Initialized successfully
INFO: GLAD: OpenGL extensions loaded successfully
INFO: GL: Supported extensions count: 403
INFO: GL: OpenGL device information:
INFO: > Vendor: NVIDIA Corporation
INFO: > Renderer: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
INFO: > Version: 3.3.0 NVIDIA 555.99
INFO: > GLSL: 3.30 NVIDIA via Cg compiler
Issue Screenshot
Code Example
The text was updated successfully, but these errors were encountered: