Jump to content

Glow Shader - How to use the alpha Channel


Schoppy0384
 Share

Recommended Posts

Hi,

 

first, Thanks shadmar for the great Glow Shader.

 

I need this Shader on a Plane with an Alpha Texture.

The Problem is, that the Glow Shader only works with the Solid Blend Mode.

 

Is it possible to use the Glow Shader with the Alpha Blend Mode?

 

 

Thanks.

 

Schoppy

Link to comment
Share on other sites

You can't use blendmode alpha since glow is set in the emissive channel and the emissive alpha channel is used for flags.

But you can alpha mask it by adding this to the end

 

if (outcolor.a < 0.5) discard;

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

If you are using additive blending, youdon't need glow shaders, just the regular diffuse.shader as blendmode light will make it glow.

 

Your texture should not contain alpha as black/dark areas will be transparent, while light areas will blend additive.

 

mat should look something like this:

post-747-0-29217600-1404639776.jpg

post-747-0-42314600-1404639785.jpg

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...