Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Rendering speed - Use an alpha channel or a separate texture?

Author
Message
pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 11th Apr 2010 20:25
I am writing a shader that will have an emissive property. Would it be faster to use a built-in alpha channel to an existing texture say from a colormap or specularmap or use a separate texture for the emissive map? Which method would render faster.

If using an alpha channel would be faster, would it be a rule of thumb to try to get as much information from alpha channels before adding more textures?

Thanks.
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 11th Apr 2010 22:47
I know traditionally that sort of thing is done in seperate images but who knows. Try 'em.

Dr Tank
17
Years of Service
User Offline
Joined: 1st Apr 2009
Location: Southampton, UK
Posted: 12th Apr 2010 01:38
I'd say use a new texture. Just using alpha means you're limited to greyscale. Perhaps you're thinking that you would want a surface to emit the same hue as it scatters due to diffuse. But it's quite possible you may want them to be different.

For instance, you might have a surface that has neon lights on it.

pdq
20
Years of Service
User Offline
Joined: 20th Jul 2006
Location:
Posted: 12th Apr 2010 05:25
Yes, I am using a greyscale alpha to simulate the effect you mentioned - emitting the same hue as it scatters. So the next question then is if greyscale is fine, will using a new texture give me better performance or would it be the same? I can always experiment to find the answer. I am just wondering if the answer has already been found.

Login to post a reply

Server time is: 2026-07-26 12:32:47
Your offset time is: 2026-07-26 12:32:47