Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Adapting Standard Shader to include Instanced Properties

Discussion in 'Shaders' started by FrankvHoof, Jan 23, 2019.

  1. FrankvHoof

    FrankvHoof

    Joined:
    Nov 3, 2014
    Posts:
    258
    I'm trying to adapt the current Standard (Fade) shader that I'm using, but I have no idea where to start.
    What I'm looking for, is the same result that the Standard Shader (Set to Fade, with Emission Enabled) gives me, but with the Emission-Color Instanced (so that I can change these on a per-instance basis using MaterialPropertyBlocks).
    However, opening the Standard.shader file, it appears that every single pass refers to CGIncludes and shader_features.
    I have no idea where to even start with this. Can anybody help me figure this out?

    TL;DR:
    Below-Average Shader Knowledge. Trying to use/create the Standard (Fade) shader with Instancing for the Emission-Color (possible the Albedo-Color as well).
     
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    Did you solve this?
    I was wondering if there is a version of standard shader with their properties instanced.