- Home /
What is way to flash the screen WITHOUT using a Texture?
I was looking to flash the screen when a player takes a hit and I would like to flash only without using a Texture.
PRIMARY REASON : If I use the texture then I have to reduce the alpha value on that texture which would then result in fillrate. As my target is mobile, I quietly want to do it without using a texture.
Your help is much appreicated.
I don't understand why you don't want to use a texture. What is the problem if the alpha is at 0 ?
Well yeah. With more transparency it increases the fillrate which might clog on mobile devices.
use a texture. there is no performance problem.
it's how every "flash" you've ever seen on every video game you've ever player on every iPhone and iPad, is done. it's no big deal.
Answer by Loius · May 01, 2013 at 11:42 PM
Ramp the ambient lighting up from {normal} to pure white back to {normal} using RenderSettings.ambientLight
slick .. but you probably agree he should just use a damn texture :)
well, i've been on the receiving end of terribly (i don't know how) implemented fades. usually they're in Flash, though. i have no idea but there's totally some way to mess it up x)
Answer by Fornoreason1000 · May 01, 2013 at 08:11 PM
you can probably use an image effect to do this... since other than that any pixel you place on the screen is essentially a texture. but for Free users Textures is probably the only thing you can do.
http://docs.unity3d.com/Documentation/Components/script-GrayscaleEffect.html
this might be a start as far as image effects go
FOrnoreason : Would recommend grayscale image effect for mobile? Android and iOS?
not sure about IOS, but it didn't impact the galaxy i tested ages ago. Alternatively You can create a new directional light in the scene and give it a massive intensity boost and set the color to pure white and activate it to make the flash that way. this is more suited for Lightning effect though since you can still see parts of the scene such as the skybox.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Player lives script help 1 Answer
Trigger GUI with a key when colliding (C#)? 1 Answer
NullReferenceException problem 2 Answers