Search Unity

Game objects using Legacy shaders are not lit up by Spotlight on Unity version 5.3.5 and higher

Discussion in 'Shaders' started by Octane-Test, Aug 23, 2016.

  1. Octane-Test

    Octane-Test

    Joined:
    Aug 23, 2016
    Posts:
    23
    I am using a Spotlight to get the floodlight effect in my game. Game objects are using Legacy and Standard shaders. On Unity version 5.3.5 and higher, Spotlight is working fine on Samsung Galaxy S2 (OS 4.0, Mali GPU), Nexus 9 (OS 6.0, Tegra GPU) and Moto X (1st Gen, OS 5.0, Adreno320 GPU). But, game objects are not at all lit up by Spotlight on Android Moto X (2nd Gen, OS 6.0, Adreno330 GPU).

    I compiled the Legacy and Standard shader codes. I noticed in the Spotlight sub-program of shaders’ code, some part is made conditional for UNITY_ADRENO_ES3.

    I went through the release notes for Unity version 5.3.5. I found that there was a fix made for Adreno GPUs.

    1. Workarounds for Open GL ES 3 shader compiler problems on Adreno GPUs

    I would like to have suggestions for following:

    1. How to fix the spotlight issue on Moto X2 device?

    I'd appreciate any suggestions on these queries. Thank you in advance.