Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

Node-based Shader Editor

Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

Postby Setsuki » Fri Sep 28, 2018 9:05 am

Hello!
I recently switched an existing project to 2018.3b2, and made sure to update ASE to the latest Asset Store version.
When building for WebGL, two of my shaders generate the following error :
duplicate system value semantic definition: input semantic 'SV_POSITION' and input semantic 'VPOS' at line 144 (on gles)

The shaders work fine on other platforms.

By opening the shader code, I get to the following generated line :
Code: Select all
fixed4 frag( v2f IN
#if !defined( CAN_SKIP_VPOS )
, UNITY_VPOS_TYPE vpos : VPOS
#endif
) : SV_Target

which is the line ponted by the compiler.

Replacing manually by
Code: Select all
fixed4 frag( v2f IN
#if !defined( CAN_SKIP_VPOS )
, UNITY_VPOS_TYPE vpos : SV_POSITION
#endif
) : SV_Target

fixes it.
Setsuki
 
Posts: 1
Joined: Fri Sep 28, 2018 8:58 am

Re: Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

Postby Amplify_Borba » Fri Sep 28, 2018 10:02 am

Hello, thank you for getting in touch and for your support!

We really appreciate that you took the time to report this issue, together with a fix.

I've passed this information along to the developer, we'll be sure to let you know as soon as we've tackled this.
Please let us know if you come across any further issues, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

Postby Amplify_Borba » Thu Nov 22, 2018 4:34 pm

Hello, I'm getting back in touch to confirm that the issue has already been fixed and is available in the latest ASE builds.

Thank you once more for sharing it with us!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: Google [Bot] and 27 guests