浏览代码

Merge pull request #100586 from tetrapod00/refraction-screen-texture

Document limitations of refraction from using screen texture
Thaddeus Crews 8 月之前
父节点
当前提交
76956286d0
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      doc/classes/BaseMaterial3D.xml

+ 1 - 0
doc/classes/BaseMaterial3D.xml

@@ -315,6 +315,7 @@
 		</member>
 		</member>
 		<member name="refraction_enabled" type="bool" setter="set_feature" getter="get_feature" default="false">
 		<member name="refraction_enabled" type="bool" setter="set_feature" getter="get_feature" default="false">
 			If [code]true[/code], the refraction effect is enabled. Distorts transparency based on light from behind the object.
 			If [code]true[/code], the refraction effect is enabled. Distorts transparency based on light from behind the object.
+			[b]Note:[/b] Refraction is implemented using the screen texture. Only opaque materials will appear in the refraction, since transparent materials do not appear in the screen texture.
 		</member>
 		</member>
 		<member name="refraction_scale" type="float" setter="set_refraction" getter="get_refraction" default="0.05">
 		<member name="refraction_scale" type="float" setter="set_refraction" getter="get_refraction" default="0.05">
 			The strength of the refraction effect.
 			The strength of the refraction effect.