Skip to content

Commit 3d6e24a

Browse files
authored
Merge pull request #4906 from Bigfoot71/fix-clip
[rlgl] Proposed fix for default near/far clipping range
2 parents 512b1be + c087144 commit 3d6e24a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rlgl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
*
5757
* #define RL_MAX_MATRIX_STACK_SIZE 32 // Maximum size of internal Matrix stack
5858
* #define RL_MAX_SHADER_LOCATIONS 32 // Maximum number of shader locations supported
59-
* #define RL_CULL_DISTANCE_NEAR 0.001 // Default projection matrix near cull distance
60-
* #define RL_CULL_DISTANCE_FAR 10000.0 // Default projection matrix far cull distance
59+
* #define RL_CULL_DISTANCE_NEAR 0.05 // Default projection matrix near cull distance
60+
* #define RL_CULL_DISTANCE_FAR 4000.0 // Default projection matrix far cull distance
6161
*
6262
* When loading a shader, the following vertex attributes and uniform
6363
* location names are tried to be set automatically:
@@ -234,10 +234,10 @@
234234

235235
// Projection matrix culling
236236
#ifndef RL_CULL_DISTANCE_NEAR
237-
#define RL_CULL_DISTANCE_NEAR 0.001 // Default near cull distance
237+
#define RL_CULL_DISTANCE_NEAR 0.05 // Default near cull distance
238238
#endif
239239
#ifndef RL_CULL_DISTANCE_FAR
240-
#define RL_CULL_DISTANCE_FAR 10000.0 // Default far cull distance
240+
#define RL_CULL_DISTANCE_FAR 4000.0 // Default far cull distance
241241
#endif
242242

243243
// Texture parameters (equivalent to OpenGL defines)

0 commit comments

Comments
 (0)