diff options
author | Juan Linietsky <juan@godotengine.org> | 2018-12-18 13:01:46 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2018-12-18 13:01:46 -0300 |
commit | 89abfd40ed0904e680ae53ba91efcc4205bccb95 (patch) | |
tree | 13a087f68d692735966993121ccb579a0e909d7f /drivers/gles2 | |
parent | 85d44dd7b6d04f9798f8bd7cfc0eae86e64890fa (diff) |
Reduce considerably the cubemap sizes on sky, to better match GLES3, fixes #21551
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 1c802fb2c2..e68d0f1cc5 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -965,7 +965,7 @@ void RasterizerStorageGLES2::sky_set_texture(RID p_sky, RID p_panorama, int p_ra // attachements for it, so we can fill them by issuing draw calls. GLuint tmp_fb; - int size = p_radiance_size; + int size = p_radiance_size / 4; //divide by four because its a cubemap (this is an approximation because GLES3 uses a dual paraboloid) int lod = 0; |