mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Merge pull request #11712 from BastiaanOlij/fix_windows_reserved_far_near
near and far are reserved for near and far pointers in MSVC
This commit is contained in:
@@ -2369,11 +2369,11 @@ void RasterizerSceneGLES3::_draw_sky(RasterizerStorageGLES3::Sky *p_sky, const C
|
||||
|
||||
if (p_custom_fov) {
|
||||
|
||||
float near = p_projection.get_z_near();
|
||||
float far = p_projection.get_z_far();
|
||||
float near_plane = p_projection.get_z_near();
|
||||
float far_plane = p_projection.get_z_far();
|
||||
float aspect = p_projection.get_aspect();
|
||||
|
||||
camera.set_perspective(p_custom_fov, aspect, near, far);
|
||||
camera.set_perspective(p_custom_fov, aspect, near_plane, far_plane);
|
||||
|
||||
} else {
|
||||
camera = p_projection;
|
||||
|
||||
Reference in New Issue
Block a user