|
1121 | 1121 | <argument index="0" name="env" type="RID" />
|
1122 | 1122 | <argument index="1" name="enable" type="bool" />
|
1123 | 1123 | <argument index="2" name="density" type="float" />
|
1124 |
| - <argument index="3" name="light" type="Color" /> |
1125 |
| - <argument index="4" name="light_energy" type="float" /> |
1126 |
| - <argument index="5" name="length" type="float" /> |
1127 |
| - <argument index="6" name="p_detail_spread" type="float" /> |
1128 |
| - <argument index="7" name="gi_inject" type="float" /> |
1129 |
| - <argument index="8" name="temporal_reprojection" type="bool" /> |
1130 |
| - <argument index="9" name="temporal_reprojection_amount" type="float" /> |
| 1124 | + <argument index="3" name="albedo" type="Color" /> |
| 1125 | + <argument index="4" name="emission" type="Color" /> |
| 1126 | + <argument index="5" name="emission_energy" type="float" /> |
| 1127 | + <argument index="6" name="anisotropy" type="float" /> |
| 1128 | + <argument index="7" name="length" type="float" /> |
| 1129 | + <argument index="8" name="p_detail_spread" type="float" /> |
| 1130 | + <argument index="9" name="gi_inject" type="float" /> |
| 1131 | + <argument index="10" name="temporal_reprojection" type="bool" /> |
| 1132 | + <argument index="11" name="temporal_reprojection_amount" type="float" /> |
1131 | 1133 | <description>
|
1132 | 1134 | </description>
|
1133 | 1135 | </method>
|
1134 | 1136 | <method name="environment_set_volumetric_fog_filter_active">
|
1135 | 1137 | <return type="void" />
|
1136 | 1138 | <argument index="0" name="active" type="bool" />
|
1137 | 1139 | <description>
|
| 1140 | + Enables filtering of the volumetric fog scattering buffer. This results in much smoother volumes with very few under-sampling artifacts. |
1138 | 1141 | </description>
|
1139 | 1142 | </method>
|
1140 | 1143 | <method name="environment_set_volumetric_fog_volume_size">
|
1141 | 1144 | <return type="void" />
|
1142 | 1145 | <argument index="0" name="size" type="int" />
|
1143 | 1146 | <argument index="1" name="depth" type="int" />
|
1144 | 1147 | <description>
|
| 1148 | + Sets the resolution of the volumetric fog's froxel buffer. [code]size[/code] is modified by the screen's aspect ratio and then used to set the width and height of the buffer. While [code]depth[/code] is directly used to set the depth of the buffer. |
| 1149 | + </description> |
| 1150 | + </method> |
| 1151 | + <method name="fog_volume_create"> |
| 1152 | + <return type="RID" /> |
| 1153 | + <description> |
| 1154 | + Creates a new fog volume and allocates an RID. |
| 1155 | + </description> |
| 1156 | + </method> |
| 1157 | + <method name="fog_volume_set_extents"> |
| 1158 | + <return type="void" /> |
| 1159 | + <argument index="0" name="fog_volume" type="RID" /> |
| 1160 | + <argument index="1" name="extents" type="Vector3" /> |
| 1161 | + <description> |
| 1162 | + Sets the size of the fog volume when shape is [constant FOG_VOLUME_SHAPE_ELLIPSOID] or [constant FOG_VOLUME_SHAPE_BOX]. |
| 1163 | + </description> |
| 1164 | + </method> |
| 1165 | + <method name="fog_volume_set_material"> |
| 1166 | + <return type="void" /> |
| 1167 | + <argument index="0" name="fog_volume" type="RID" /> |
| 1168 | + <argument index="1" name="material" type="RID" /> |
| 1169 | + <description> |
| 1170 | + Sets the [Material] of the fog volume. Can be either a [FogMaterial] or a custom [ShaderMaterial]. |
| 1171 | + </description> |
| 1172 | + </method> |
| 1173 | + <method name="fog_volume_set_shape"> |
| 1174 | + <return type="void" /> |
| 1175 | + <argument index="0" name="fog_volume" type="RID" /> |
| 1176 | + <argument index="1" name="shape" type="int" enum="RenderingServer.FogVolumeShape" /> |
| 1177 | + <description> |
| 1178 | + Sets the shape of the fog volume to either [constant RenderingServer.FOG_VOLUME_SHAPE_ELLIPSOID], [constant RenderingServer.FOG_VOLUME_SHAPE_BOX], or [constant RenderingServer.FOG_VOLUME_SHAPE_ELLIPSOID] or [constant RenderingServer.FOG_VOLUME_SHAPE_WORLD]. |
1145 | 1179 | </description>
|
1146 | 1180 | </method>
|
1147 | 1181 | <method name="force_draw">
|
|
1422 | 1456 | Sets a margin to increase the size of the AABB when culling objects from the view frustum. This allows you to avoid culling objects that fall outside the view frustum. Equivalent to [member GeometryInstance3D.extra_cull_margin].
|
1423 | 1457 | </description>
|
1424 | 1458 | </method>
|
| 1459 | + <method name="instance_set_ignore_culling"> |
| 1460 | + <return type="void" /> |
| 1461 | + <argument index="0" name="instance" type="RID" /> |
| 1462 | + <argument index="1" name="enabled" type="bool" /> |
| 1463 | + <description> |
| 1464 | + </description> |
| 1465 | + </method> |
1425 | 1466 | <method name="instance_set_layer_mask">
|
1426 | 1467 | <return type="void" />
|
1427 | 1468 | <argument index="0" name="instance" type="RID" />
|
|
3408 | 3449 | <constant name="SHADER_SKY" value="3" enum="ShaderMode">
|
3409 | 3450 | Shader is a sky shader.
|
3410 | 3451 | </constant>
|
3411 |
| - <constant name="SHADER_MAX" value="4" enum="ShaderMode"> |
| 3452 | + <constant name="SHADER_FOG" value="4" enum="ShaderMode"> |
| 3453 | + Shader is a fog shader. |
| 3454 | + </constant> |
| 3455 | + <constant name="SHADER_MAX" value="5" enum="ShaderMode"> |
3412 | 3456 | Represents the size of the [enum ShaderMode] enum.
|
3413 | 3457 | </constant>
|
3414 | 3458 | <constant name="MATERIAL_RENDER_PRIORITY_MIN" value="-128">
|
|
3771 | 3815 | </constant>
|
3772 | 3816 | <constant name="PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX" value="6" enum="ParticlesCollisionHeightfieldResolution">
|
3773 | 3817 | </constant>
|
| 3818 | + <constant name="FOG_VOLUME_SHAPE_ELLIPSOID" value="0" enum="FogVolumeShape"> |
| 3819 | + [FogVolume] will be shaped like an ellipsoid. |
| 3820 | + </constant> |
| 3821 | + <constant name="FOG_VOLUME_SHAPE_BOX" value="1" enum="FogVolumeShape"> |
| 3822 | + [FogVolume] will be shaped like a box. |
| 3823 | + </constant> |
| 3824 | + <constant name="FOG_VOLUME_SHAPE_WORLD" value="2" enum="FogVolumeShape"> |
| 3825 | + [FogVolume] will have no shape, will cover the whole world and will not be culled. |
| 3826 | + </constant> |
3774 | 3827 | <constant name="VIEWPORT_UPDATE_DISABLED" value="0" enum="ViewportUpdateMode">
|
3775 | 3828 | Do not update the viewport.
|
3776 | 3829 | </constant>
|
|
4147 | 4200 | </constant>
|
4148 | 4201 | <constant name="INSTANCE_VISIBLITY_NOTIFIER" value="11" enum="InstanceType">
|
4149 | 4202 | </constant>
|
4150 |
| - <constant name="INSTANCE_MAX" value="12" enum="InstanceType"> |
| 4203 | + <constant name="INSTANCE_FOG_VOLUME" value="12" enum="InstanceType"> |
| 4204 | + </constant> |
| 4205 | + <constant name="INSTANCE_MAX" value="13" enum="InstanceType"> |
4151 | 4206 | Represents the size of the [enum InstanceType] enum.
|
4152 | 4207 | </constant>
|
4153 | 4208 | <constant name="INSTANCE_GEOMETRY_MASK" value="14" enum="InstanceType">
|
|
0 commit comments