Browse Source

Actually respect the low quality cubemap filter on mobile, should fix crashes on mobile for #21551 but not sure on intel.

Juan Linietsky 6 năm trước cách đây
mục cha
commit
85d44dd7b6
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      drivers/gles2/rasterizer_storage_gles2.cpp

+ 2 - 0
drivers/gles2/rasterizer_storage_gles2.cpp

@@ -4482,6 +4482,8 @@ void RasterizerStorageGLES2::initialize() {
 
 	shaders.copy.init();
 	shaders.cubemap_filter.init();
+	bool ggx_hq = GLOBAL_GET("rendering/quality/reflections/high_quality_ggx.mobile");
+	shaders.cubemap_filter.set_conditional(CubemapFilterShaderGLES2::LOW_QUALITY, !ggx_hq);
 
 	{
 		// quad for copying stuff