mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.62k stars 773 forks source link

Not working on PS4 #211

Closed TPetersonWayforward closed 4 years ago

TPetersonWayforward commented 4 years ago

Good day yall,

I'm having a bit of an issue with PS4 builds, unfortunately all the shaders in this package are failing in a ps4 build. I see lots of errors and warnings around 750 warnings and 8 errors regarding the shaders in the package.

All pretty much the same things, 2 errors for each shader, for example:

-------
Shader error in 'Hidden/UITransition': Program 'frag', ambiguous call to 'lerp'. Found 91 possible candidates: at /Projects/Game/PS4/Packages/com.coffee.ui-effect/Resources/UIEffect.cginc(263) (on ps4)

Compiling Fragment program with DISSOLVE
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
------

and this one:

------
Shader error in 'Hidden/UITransition': Program 'vert', ambiguous call to 'lerp'. Found 91 possible candidates: at /Projects/Game/PS4/Packages/com.coffee.ui-effect/Resources/UIEffect.cginc(263) (on ps4)

Compiling Vertex program with UNITY_UI_ALPHACLIP CUTOFF
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
------

and then tons of warnings all saying stuff along the lines of:

------
Shader warning in 'Hidden/UITransition': Program 'frag', or      : lerp(column_major float2x4 a, row_major float2x4 b, float d) (on ps4)

Compiling Fragment program with UNITY_UI_ALPHACLIP
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
------

I'm using this package in a few places, and I'd hate to have to give it up in the game I'm making, but I need PS4 builds to work. Please let me know if these can be addressed.

mob-sakai commented 4 years ago

This article will fix the problem on PS4. https://forum.unity.com/threads/shader-error-ambiguous-lerp.547711/

NOTE: I don't have a development environment for PS4.

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 4.0.0-preview.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: