Object highlight

Hi, I am trying to highlight an object by adding another material on the renderer. My problem is that I’m not too good with shaders stuff, and want to know which shader should I use so that after adding the material the object would appear more “shiny”. I have a directional light, and was thinking that the new material could bounce off more light, or shine more. Thanks

Specular will do what you want methinks. Also, this is not a scripting question, more of a general question.

Edit: Better yet, the shader forum.

The easiest way to do this is by adjusting the color of the material. Lets say all your objects in the scene are white. They all appear nice and crisp, bright even. What happens when we want to select something. Well, we can change that color to red. So now the one object we have selected is red, the rest are white, that stands out, right?

What happens when we want the selected object to be brighter than the non selected object? Well, this doesn’t work so well. The way we fix this is to make sure that any object that is not selected is, not white. Lets say every selectable object in our scene is actually gray. Not bad mid bland gray, but about 90% gray. Then when we select an object, we make the object white. Then we get a 10% increase in brightness just for that one object.

var offPercent=0.9;
var onPercent=1.0;
private var colorPercent : float;

function Start(){
	colorPercent=offPercent;
}

function LateUpdate(){
	if(renderer)
		if(renderer.material)
			renderer.material.color=Color.Lerp(Color.black, Color.white, colorPercent);
}

function OnMouseEnter(){
	colorPercent=onPercent;
}
function OnMouseExit(){
	colorPercent=offPercent;
}