Browse Source

fix ReflectionProbe rendering extents for (10,10,10)

jainl28patel 2 years ago
parent
commit
2da3acf620

+ 1 - 1
drivers/gles3/storage/light_storage.h

@@ -113,7 +113,7 @@ struct ReflectionProbe {
 	Color ambient_color;
 	Color ambient_color;
 	float ambient_color_energy = 1.0;
 	float ambient_color_energy = 1.0;
 	float max_distance = 0;
 	float max_distance = 0;
-	Vector3 extents = Vector3(1, 1, 1);
+	Vector3 extents = Vector3(10, 10, 10);
 	Vector3 origin_offset;
 	Vector3 origin_offset;
 	bool interior = false;
 	bool interior = false;
 	bool box_projection = false;
 	bool box_projection = false;

+ 1 - 1
servers/rendering/renderer_rd/storage_rd/light_storage.h

@@ -226,7 +226,7 @@ private:
 		Color ambient_color;
 		Color ambient_color;
 		float ambient_color_energy = 1.0;
 		float ambient_color_energy = 1.0;
 		float max_distance = 0;
 		float max_distance = 0;
-		Vector3 extents = Vector3(1, 1, 1);
+		Vector3 extents = Vector3(10, 10, 10);
 		Vector3 origin_offset;
 		Vector3 origin_offset;
 		bool interior = false;
 		bool interior = false;
 		bool box_projection = false;
 		bool box_projection = false;