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

Godot 4.3: vines don't work anymore #18

Open
NathanLovato opened this issue Sep 25, 2024 · 1 comment
Open

Godot 4.3: vines don't work anymore #18

NathanLovato opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NathanLovato
Copy link
Contributor

The vines demo is meant to produce a tapering effect like this but doesn't work in Godot 4.3 currently:

image

This needs to be investigated.

@NathanLovato NathanLovato added the bug Something isn't working label Sep 25, 2024
@HubbleCommand
Copy link
Contributor

I took a quick peek at this again, and it seems like inversing the +/- operators fixes the worst of it.

So instead of

void vertex() {
	float uneven_growth = (growth * 2.0 - 1.0) - COLOR.r;
	displacement = UV.x + min(0.0, uneven_growth);
	// subtract original model's thickness
	VERTEX -= NORMAL * 0.1;
	VERTEX += NORMAL * thickness * displacement;
}

Use

	VERTEX += NORMAL * 0.1;
	VERTEX -= NORMAL * thickness * displacement;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants