AmplifyCreations / AmplifyShaderEditor-Feedback

4 stars 0 forks source link

Brackets generated by custom expression can cause compilation errors #318

Closed BOXOPHOBIC closed 2 weeks ago

BOXOPHOBIC commented 4 months ago

The Brackets generated by custom expression can cause compilation errors, even if they should not contribute to anything: image

commenting out the brackets: image

Shader uploaded, Legacy unlit, works with any pipeline New Amplify Shader.zip

BOXOPHOBIC commented 2 months ago

This is the part generation of the inline brackets. Tested with my shaders containing a bunch of custom expressions, everything seems to work fine, but I don't know if it covers all cases. The brackets just wrap the inline code so it should not contribute to anything, except unity complaining about them. image