I am making a unity project like Dressing Room. The basic function is to change the fabric of a gameobj ( such as a shoe). So i want to achieve outline effect when the gameobj is selected by player, I have found that modify the source shader to a outline shader work well. But the source shader have normalmap and lightmap properties , the outline shader only have :
Shader "Outlined/Silhouetted Diffuse" {
Properties {
_Color ("Main Color", Color) = (.0,.0,.0,0)
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
_Outline ("Outline width", Range (0.0, 0.03)) = .01
_MainTex ("Base (RGB)", 2D) = "white" { }
}
So when the shader is changed the lightmap and normalmap properties lost at the same time. I have no idea how to add these two properties to the outline shader :
Shader "Outlined/Silhouetted Diffuse" {
Properties {
_Color ("Main Color", Color) = (.0,.0,.0,0)
_OutlineColor ("Outline Color", Color) = (0,0,0,1)
_Outline ("Outline width", Range (0.0, 0.03)) = .01
_MainTex ("Base (RGB)", 2D) = "white" { }
//**********add these two properties ***********
_BumpMap ("Normalmap", 2D) = "bump" {}
_LightMap ("Lightmap (RGB)", 2D) = "black" {}
}