Ok, I know this is probably going to sound like a simple question, but how would I make a simple sphere shape appear as if its “glowing”?
Thanks in advance to anyone that can help…
Ok, I know this is probably going to sound like a simple question, but how would I make a simple sphere shape appear as if its “glowing”?
Thanks in advance to anyone that can help…
Shaders are a bit part of that, but you also need to add a lot (self-illuminated helps to make it glow). A point light, which radiates in all directions, is likely to be what you want.
Here:
// Glow variables:
private var highlightMultiply = 1.5;
private var originalColor;
function Start () {
// get original color for Glow functions
originalColor = renderer.material.color;
}
function Glow() {
renderer.material.color.r = originalColor.r*highlightMultiply;
renderer.material.color.g = originalColor.g*highlightMultiply;
renderer.material.color.b = originalColor.b*highlightMultiply;
}
function NoGlow() {
renderer.material.color = originalColor;
}
Now just call Glow() to start it glowing and NoGlow() to reset it!
Woot!