Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default radial LightTexture implementation #60

Merged
merged 2 commits into from
Apr 4, 2021
Merged

Conversation

Xrayez
Copy link
Contributor

@Xrayez Xrayez commented Apr 4, 2021

Closes godotengine/godot-proposals#1717.

Useful for Light2D nodes. It's quite cumbersome to create radial gradient textures to be actually useful for Light2D nodes by default quickly enough, so most of the time it wouldn't be intuitive for beginners, so this should help to speed up the workflow in general.

image

Based on GradientTexture2D.

This PR also increases default texture size to 256x256 pixels, see rationale in godotengine/godot#47410 (comment).

Note for Godot 4.0: auto-instantiation of Gradient will have to be done via editor as suggested in godotengine/godot#39479, otherwise there are known limitations of reverting the property to default value.

Useful for `Light2D` nodes. It's quite cumbersome to create radial gradient textures to be actually useful for `Light2D` nodes by default quickly enough.

Based on `GradientTexture2D`.
Mostly useful for light textures, but also allows for higher color interpolation accuracy for RGBA8 images.
@Xrayez Xrayez added enhancement Improvement of existing features feature 💡 New feature proposal labels Apr 4, 2021
@Xrayez Xrayez merged commit 999bb21 into gd3 Apr 4, 2021
@Xrayez Xrayez deleted the light-texture branch April 4, 2021 20:47
@Xrayez Xrayez added this to the gd3 milestone Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features feature 💡 New feature proposal topic:rendering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default light textures for the Light2D node
1 participant