Search Unity

Question Combining Two Shaders

Discussion in 'Shader Graph' started by AnimusRex, Jul 1, 2020.

Thread Status:
Not open for further replies.
  1. AnimusRex

    AnimusRex

    Joined:
    Apr 26, 2019
    Posts:
    67
    Hi,

    I have two third party shaders I've purchased, one for cell shading, and another which is for a custom character. I am looking to combine the effects of both of these shaders, but am having a rough go of it.


    MOD EDIT: Do not post code from assets in the asset store, that a violation of the TOS. Contact the authors if you need support.


    I keep getting strange errors,
    Unexpected identifier "SurfaceOutputStandard". Expected one of: sampler sampler1D sampler2D sampler3D samplerCUBE sampler_state SamplerState SamplerComparisonState bool int uint half float double or a user-defined type

    I'm competent at C#, but haven't touched shaders before, and the source files for this might as well be written in mandarin. I thought I'd copied and pasted everything where it should go, but apparently not.

    Any insight appreciated, thank you!
     
    Last edited by a moderator: Jul 6, 2020
  2. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    163
    Hi, this thread is for Shader Graph specifically. I fyou need help with shader code, I'd ask over in the shader forum.
     
  3. AnimusRex

    AnimusRex

    Joined:
    Apr 26, 2019
    Posts:
    67
    Derp. Is it possible to move the thread?
     
  4. JasonBooth

    JasonBooth

    Joined:
    Jan 27, 2014
    Posts:
    648
    You've also posted the code you have purchased in a public forum, which is against the license.
     
  5. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    9,051
    Closed. Wrong forum.
     
Thread Status:
Not open for further replies.