浏览代码

Increase the default ReflectionProbe extents to Vector3(10, 10, 10)

On top of having a more realistic size out of the box, this matches
the default VoxelGI extents for better usability.
Hugo Locurcio 4 年之前
父节点
当前提交
f28b55b551
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      doc/classes/ReflectionProbe.xml
  2. 1 1
      scene/3d/reflection_probe.h

+ 2 - 2
doc/classes/ReflectionProbe.xml

@@ -28,8 +28,8 @@
 		<member name="enable_shadows" type="bool" setter="set_enable_shadows" getter="are_shadows_enabled" default="false">
 		<member name="enable_shadows" type="bool" setter="set_enable_shadows" getter="are_shadows_enabled" default="false">
 			If [code]true[/code], computes shadows in the reflection probe. This makes the reflection probe slower to render; you may want to disable this if using the [constant UPDATE_ALWAYS] [member update_mode].
 			If [code]true[/code], computes shadows in the reflection probe. This makes the reflection probe slower to render; you may want to disable this if using the [constant UPDATE_ALWAYS] [member update_mode].
 		</member>
 		</member>
-		<member name="extents" type="Vector3" setter="set_extents" getter="get_extents" default="Vector3(1, 1, 1)">
-			The size of the reflection probe. The larger the extents the more space covered by the probe which will lower the perceived resolution. It is best to keep the extents only as large as you need them.
+		<member name="extents" type="Vector3" setter="set_extents" getter="get_extents" default="Vector3(10, 10, 10)">
+			The size of the reflection probe. The larger the extents, the more space covered by the probe, which will lower the perceived resolution. It is best to keep the extents only as large as you need them.
 		</member>
 		</member>
 		<member name="intensity" type="float" setter="set_intensity" getter="get_intensity" default="1.0">
 		<member name="intensity" type="float" setter="set_intensity" getter="get_intensity" default="1.0">
 			Defines the reflection intensity. Intensity modulates the strength of the reflection.
 			Defines the reflection intensity. Intensity modulates the strength of the reflection.

+ 1 - 1
scene/3d/reflection_probe.h

@@ -55,7 +55,7 @@ private:
 	RID probe;
 	RID probe;
 	float intensity = 1.0;
 	float intensity = 1.0;
 	float max_distance = 0.0;
 	float max_distance = 0.0;
-	Vector3 extents = Vector3(1, 1, 1);
+	Vector3 extents = Vector3(10, 10, 10);
 	Vector3 origin_offset = Vector3(0, 0, 0);
 	Vector3 origin_offset = Vector3(0, 0, 0);
 	bool box_projection = false;
 	bool box_projection = false;
 	bool enable_shadows = false;
 	bool enable_shadows = false;