0
Completed

Draw silhouette behind objetct

Deo 8 years ago updated 7 years ago 2

Is there any way to draw a silhouette when the object it's behind another one?


Image 655

Answer

Answer
Completed

Yes I did, shader forge doesn't have support for multi shaders, so do this:

1. Shader Forge - PBR: Create your normal material.

2. Shader Forge - Unlit: Create your silhoutte material


3. Code:


Shader "Your Name" {

Properties {

// Each properties of the both shaders PBR & Unlit

}


SubShader {

// Shader Unlit

Pass {}


// Shader PBR

Pass {}

}


FallBack "Diffuse"

}

Hi, Did you find any way to do this in Shader Forge. Right now trying exactly the same thing ?

Answer
Completed

Yes I did, shader forge doesn't have support for multi shaders, so do this:

1. Shader Forge - PBR: Create your normal material.

2. Shader Forge - Unlit: Create your silhoutte material


3. Code:


Shader "Your Name" {

Properties {

// Each properties of the both shaders PBR & Unlit

}


SubShader {

// Shader Unlit

Pass {}


// Shader PBR

Pass {}

}


FallBack "Diffuse"

}