Page 1 of 1

Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

PostPosted: Fri Sep 28, 2018 9:05 am
by Setsuki
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.

Re: Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

PostPosted: Fri Sep 28, 2018 10:02 am
by Amplify_Borba
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!

Re: Unity 2017.3b2 WebGL - SV_POSITION vs VPOS

PostPosted: Thu Nov 22, 2018 4:34 pm
by Amplify_Borba
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!