Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mobile Diffuse shader lights

Discussion in 'PSM' started by giyomu, Apr 27, 2014.

  1. giyomu

    giyomu

    Joined:
    Oct 6, 2008
    Posts:
    1,094
    Hi, forgive me in advance if that subject is already answer somewhere, but I am just curious to know if actually I should expect mobile diffuse shader to work with light on the device.

    I have got several point light in my level which actually light all my model been with that mobile diffuse shader, this work on iOS platform as well, but on the vita to get that working I had to put all those shader for now using standard diffuse shader.

    So is mobile diffuse shader does actually not work with light as I should expect ?

    thanks
     
  2. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    375
    Mobile Diffuse shader is not effected by a point or spot light (in my horror game i had to use the normal Diffuse shader)
    You can also edit or add a line or two to the mobile shader to adjust this. Either works.
    Hope this helps.
     
    AndyNeoman likes this.
  3. giyomu

    giyomu

    Joined:
    Oct 6, 2008
    Posts:
    1,094
    Hi jesus ( I am shortcutting your pseudo :) )

    Yeah I tested with normal diffuse shader and this work, I will get into this more deeply later on !

    thanks for your reply
     
  4. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    after the dev assistant update ...no matter what a shader i m using there is no light casting ... even with simple scene i never got the lighting .... even i using directional lighting the performence goes down and i got about 500 drawcalls just for a directional light !!!
     
    Last edited: May 9, 2014
  5. jesusluvsyooh

    jesusluvsyooh

    Joined:
    Jan 10, 2012
    Posts:
    375

    Extra drawcalls? Are you using any fancy shaders, also sounds like you have shadows turned on too, and its perhaps receiving and casting shadows for each of your scene objects.
    When switching projects from iOS, Android, web player etc, i've noticed some 'features' ? get reset, perhaps you need to double check everything in your game, settings and scenes. :)
     
  6. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    588
    yes i m using self made shader and the shadow options are on but if i use statics light it has no effect no lights no shadows nothing in the editors works but on vita nothing