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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

how to add rgb channel script for vertex blend in shaderlab?

Discussion in 'Shaders' started by Linus392, Aug 14, 2013.

  1. Linus392

    Linus392

    Joined:
    Aug 14, 2013
    Posts:
    24
    do any body know how to add rgb channel on shaderlab ?
     
  2. Dolkar

    Dolkar

    Joined:
    Jun 8, 2013
    Posts:
    576
    what?
     
  3. Linus392

    Linus392

    Joined:
    Aug 14, 2013
    Posts:
    24
    how to add diffuse and normal on each rgb channel ?
     
  4. Dolkar

    Dolkar

    Joined:
    Jun 8, 2013
    Posts:
    576
    You can't output multiple color buffers from a single shader if thats what you mean... (well, you can, but Unity doesn't support it on a higher level, so you would have to reimplement the whole rendering process and basically do everything through DrawMeshNow... if thats what you're after.)

    Maybe if you kindly told us what you want to achieve with that...
     
  5. Linus392

    Linus392

    Joined:
    Aug 14, 2013
    Posts:
    24
    about vertex paint using rgb channel with normal map...