Search Unity

Mobile Shader for Spotlight

Discussion in 'Shaders' started by skinwalker, Oct 31, 2016.

  1. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    509
    Hey,

    I am developing a game for VR, so I have to keep the game running with 60 FPS.
    The player in my game has a flashlight ( real-time spotlight ) and when its on the FPS drops, so I decided to switch from the Standard shader to some of the mobile built in shaders, but none of them will allow the spotlight to shine on the floor and on the walls to give the flashlight effect.

    You can see the props here with the mobile shader, it looks really awful, it does not even look like a flashlight - >
    https://i.imgur.com/hZ8Ttk6.png

    These are the same props when I use the Standard shader ->
    https://i.imgur.com/vduJ6iy.png

    So how can I achieve the same effect as the standard one with some custom or built in shader, but keep the performance for mobile good ?
     
    DaveMero likes this.
  2. dARkStorN-

    dARkStorN-

    Joined:
    Dec 21, 2018
    Posts:
    5
    @skinwalker Hey man sorry to bother. Did you find a solution for this issue, because i am facing it right now and i dont have a clue about how to fix it. Can you help me?
     
  3. skinwalker

    skinwalker

    Joined:
    Apr 10, 2015
    Posts:
    509
    Hi, no I didnt find a solution for this and stopped working on that vr project. Now looking at the asset store the first thing that pops up is this, worth checking out and maybe contact the creator to ask him questions https://assetstore.unity.com/packages/vfx/shaders/volumetric-light-beam-99888

    Pretty sure someone made an asset at this point.

    Or maybe try switching the shader of the objects to some of the mobile shaders as well.
     
  4. dARkStorN-

    dARkStorN-

    Joined:
    Dec 21, 2018
    Posts:
    5
    Thanks for the suggestion man. I will try to contact the creator.