Fix volumetric fog not rendering at densities lower than or equal to 0.001
This allows volumetric fog to render with the lowest density that can be specified in the inspector (0.0001).
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
</member>
|
||||
<member name="density" type="float" setter="set_density" getter="get_density" default="1.0">
|
||||
The density of the [FogVolume]. Denser objects are more opaque, but may suffer from under-sampling artifacts that look like stripes. Negative values can be used to subtract fog from other [FogVolume]s or global volumetric fog.
|
||||
[b]Note:[/b] Due to limited precision, [member density] values between [code]-0.001[/code] and [code]0.001[/code] (exclusive) act like [code]0.0[/code]. This does not apply to [member Environment.volumetric_fog_density].
|
||||
</member>
|
||||
<member name="density_texture" type="Texture3D" setter="set_density_texture" getter="get_density_texture">
|
||||
The 3D texture that is used to scale the [member density] of the [FogVolume]. This can be used to vary fog density within the [FogVolume] with any kind of static pattern. For animated effects, consider using a custom [url=$DOCS_URL/tutorials/shaders/shader_reference/fog_shader.html]fog shader[/url].
|
||||
|
||||
Reference in New Issue
Block a user