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

Invalid conditional expression error in 2020.3 LTS #2

Open
Snowdrama opened this issue Apr 8, 2021 · 0 comments
Open

Invalid conditional expression error in 2020.3 LTS #2

Snowdrama opened this issue Apr 8, 2021 · 0 comments

Comments

@Snowdrama
Copy link

When using this in 2020.3+ the HLSL has an error

Invalid conditional expression. at Assets/URP-PSX/Shaders/HLSL/CustomLighting.hlsl(5)

Leaving an issue here in case anyone wants to use this in 2020.3 LTS but there is a pretty easy fix:

#if SHADERGRAPH_PREVIEW

Should be

#ifdef SHADERGRAPH_PREVIEW

Changing that should allow it to work on 2020.3 correctly

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

No branches or pull requests

1 participant