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

Using preprocessor in visual shader global expression produces error "Tokenizer: unknown character #35" #82555

Closed
100gold opened this issue Sep 29, 2023 · 0 comments · Fixed by #82570

Comments

@100gold
Copy link
Contributor

100gold commented Sep 29, 2023

Godot version

v4.1.stable.official [9704596]

System information

Godot v4.1.stable - Windows 10.0.19044 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 30.0.14.7141) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

Issue description

screen

include directive should be parsed by preprocessor in visual shader editor. This issue affects only editor, "show generated shader code" button.

Steps to reproduce

  1. Create shader include file
  2. Create visual shader
  3. Add global expression node to visual shader with include directive
  4. Press "show generated shader code" button. Error will be displayed.

Minimal reproduction project

vsshader_include.zip

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