LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   JA Mapping (http://www.lucasforums.com/forumdisplay.php?f=540)
-   -   shader blending (http://www.lucasforums.com/showthread.php?t=162545)

{NJO}*Dark 03-18-2006 02:57 PM

shader blending
 
what is the shader blend line to make parts in black not be shown?

Fracman 03-19-2006 08:48 AM

you could do it in different ways...

the easiest - with shader only - is the "add" function,
but this is usually used for glow stages:

blendfunc GL_ONE GL_ONE

The other possibility is to use alpha functions.
The texture you want to blend must be saved as PNG or TGA with an Alpha channel,
which tells regions of the image that are more ore less transparent (depending on the gray value: black: totally opaque, 50% grey: 50% transparent, white: totally transparent - or the inverse).
The transparency degree can be also adjusted by the shader.
Using alpha channels, there are much more possibilities,
but it is also more complex.
You would have to play around with the shader editor.


All times are GMT -4. The time now is 08:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.