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

Failing to create boolean varying in visual shader editor #83193

Closed
jsjtxietian opened this issue Oct 12, 2023 · 0 comments · Fixed by #83194
Closed

Failing to create boolean varying in visual shader editor #83193

jsjtxietian opened this issue Oct 12, 2023 · 0 comments · Fixed by #83194

Comments

@jsjtxietian
Copy link
Contributor

jsjtxietian commented Oct 12, 2023

Godot version

Godot v4.2.beta (b137180)

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.3619) - 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz (16 Threads)

Issue description

Add a boolean varying by Manage Varyings will fail because of the generated shader code is modified with flat. The error wll print in console: Interpolation modifier 'flat' cannot be used with boolean types.

image

image

Steps to reproduce

Create a visual shader resource, edit it in visual shader editor. Click the Manage Varyings, then add a boolean varying, the error will occur.

Minimal reproduction project

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants