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

ShaderLab: "Blend factor expected" incorrect/pedantic error #723

Closed
pvirdone-s8 opened this issue Aug 22, 2018 · 1 comment
Closed

ShaderLab: "Blend factor expected" incorrect/pedantic error #723

pvirdone-s8 opened this issue Aug 22, 2018 · 1 comment
Assignees
Milestone

Comments

@pvirdone-s8
Copy link

ShaderLab code inspection gives an error when a Blend is set to off in a SubShader. Encountered in code distributed in the Amplify Occlusion plugin.

Here's some code that demonstrates the error when used in Rider 2018.1.4 with Unity 2017.4.1f1. Also reproed with latest Rider EAP.

Shader "Unlit/demo" { SubShader { Pass { Blend 0 Off } } }

screen shot 2018-08-20 at 10 49 53 am

@citizenmatt citizenmatt added this to the Rider 2018.3 milestone Aug 27, 2018
@citizenmatt citizenmatt self-assigned this Aug 27, 2018
@IvanPashchenko
Copy link
Collaborator

@citizenmatt NB: this is not a valid syntax according to the Unity docs, you may want to check with Unity people on the updated parser
https://docs.unity3d.com/Manual/SL-Blend.html

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

No branches or pull requests

3 participants