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

How to manipulate Standard Shader(specular setup) in unity 5 ???

Discussion in 'Shaders' started by deadlycrow, Mar 6, 2015.

  1. deadlycrow

    deadlycrow

    Joined:
    Feb 10, 2014
    Posts:
    159
    i was wondering how can i change the STANDARD SPECULAR(setup) shader to allow me "tint" the specular map, because i have a complex .psd file(30mb) for a metallic material (an iron robot) and i want also a golden robot, copper robot, etc...and i think is a waste of space making ten or more specular maps with different colors in photoshop(200mb or more) and it will be a lot more easy just to use a desaturated specular map and tint it in the material, multiplying the "specular color" with the specular map...or how can i just mimic the standar PBL shader but with a specular color, and a glossines slider which will not dissapear when i add a specular map, insted of choose one of them, multiply them, can we do this, right? i have 0 knowledge of shader scripting, so im wandering if someone could help me, or just point me in the right direction :( ( please dont tell me that i need to write my own PBL shader,that is beyond my limits).
    als,is it possible to multiply the reflection with a color or not?
    THAnk YOU!
     
  2. rev087

    rev087

    Joined:
    Oct 3, 2013
    Posts:
    11
    I'm not an artist, nor graphic developer, but from what little I understand of PBR, if you switch to work with the Standard Metallic workflow and simply change the Albedo color, it will tint the albedo texture. From here, the more you increase the Metallic property, the more the specular reflection will be tinted by the albedo.
     
  3. deadlycrow

    deadlycrow

    Joined:
    Feb 10, 2014
    Posts:
    159
    RIGHT! but my robot has metallic parts and plastic parts, so i need to use a custom texture with the details, and be able to tint this texture with a color
     
  4. judgementAlex

    judgementAlex

    Joined:
    Sep 9, 2013
    Posts:
    28
    looks like you want to add a new texture parameter as a mask and multiply it by a given color tint parameter