Skip to content

[3.x] Add "far distance" to SpatialMaterial proximity fade#50669

Open
Calinou wants to merge 1 commit into
godotengine:3.xfrom
Calinou:proximity-fade-add-far-distance-3.x
Open

[3.x] Add "far distance" to SpatialMaterial proximity fade#50669
Calinou wants to merge 1 commit into
godotengine:3.xfrom
Calinou:proximity-fade-add-far-distance-3.x

Conversation

@Calinou

@Calinou Calinou commented Jul 20, 2021

Copy link
Copy Markdown
Member

Note: Opened against 3.x first due to the feature not being testable in master.

This is the opposite of standard proximity fade. When set to a value greater than 0, it will fade the material's alpha as it gets further away from a solid material.

This can be used for:

This closes godotengine/godot-proposals#3021.

Preview

image

@Calinou Calinou requested a review from a team as a code owner July 20, 2021 22:27
@Calinou Calinou added this to the 3.4 milestone Jul 20, 2021
Comment thread doc/classes/SpatialMaterial.xml Outdated
@Calinou Calinou force-pushed the proximity-fade-add-far-distance-3.x branch from 097bf3f to 5cec4f7 Compare July 21, 2021 06:45
Comment thread doc/classes/SpatialMaterial.xml Outdated
This is the opposite of standard proximity fade.
When set to a value greater than 0, it will fade the material's alpha
as it gets further away a solid material.

This can be used for:

- Fading quads used as decals if there is no surface close to them
  (useful to prevent "flying" blob shadows).
- Welding/cutting torch effects
  (https://simonschreibt.de/gat/alien-vs-wolfenstein-cutting-torch/).
- Area-of-effect and explosion VFX.
@Calinou Calinou force-pushed the proximity-fade-add-far-distance-3.x branch from 5cec4f7 to 25e98ff Compare July 22, 2021 11:51
@Chaosus Chaosus modified the milestones: 3.4, 3.5 Nov 8, 2021
@akien-mga akien-mga force-pushed the 3.x branch 2 times, most recently from 71cb8d3 to c58391c Compare January 6, 2022 22:40
@akien-mga akien-mga modified the milestones: 3.5, 3.x Jul 3, 2022
@Calinou Calinou changed the title Add "far distance" to SpatialMaterial proximity fade [3.x] Add "far distance" to SpatialMaterial proximity fade Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants