Skip to content

Commit

Permalink
Reduce considerably the cubemap sizes on sky, to better match GLES3, f…
Browse files Browse the repository at this point in the history
…ixes #21551
  • Loading branch information
reduz committed Dec 18, 2018
1 parent 85d44dd commit 89abfd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gles2/rasterizer_storage_gles2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 89abfd4

Please sign in to comment.