Search Unity

Question ShaderGraph + Freshnel power + double sided BUG? for Oculus Quest (or all Android devices)

Discussion in 'Shader Graph' started by Siberdt, Nov 7, 2019.

  1. Siberdt

    Siberdt

    Joined:
    Dec 15, 2009
    Posts:
    59
    Good day.
    I've found it on OculusQuest, have no idea about all Android devices, my phone is not compatible with LWRP graphics.

    This is my shader for the tests. It's very simplified.
    The shader provires some defaulr rim effect on front-faces and fill the back-faces with red color.

    upload_2019-11-7_15-3-20.png

    The result of this shader on desktop looks like:

    upload_2019-11-7_14-49-32.png

    The issue is in Power (Vector1) value.
    When I'm playing with Power on desktop, it affects, of course, on rim light.
    But, for Oculus Quest builds, when the Power value is not equal of 0 or 1, the whole object is filled by back-face color (red). It ruins tons of shaders.

    Can you confirm this error or help get around this problem?
    Thank.