Jump to content

Shaders


Imchasinyou
 Share

Recommended Posts

Is there any way to obtain an alpha shader for characters?

I only have the option of diffuse, normal and specular.

 

I have a character that I cant seem to remove some white around her hair even after several attempts. I have set to DTX5 but there is no alpha to make it invisible.

Asus sabertooth 990FX, AMD FX 9590 , Windows 7 Home Premium 64 Bit, 4 HDD's Western Digital Caviar Black set in Raid 0, 16 GB Crucial Ballistix Elite, Asus Radeon R9 270 X 4GB, Corsair CM750M,

Link to comment
Share on other sites

should be as simple as discarding the pixel if the alpha falls below a certain level...

so after the line here:

//Modulate blend with diffuse map
outcolor *= texture(texture0,ex_texcoords0);

add this line:

if (outcolor.a<0.5) discard;

 

granted this may require you to edit the original diffuse texture to lower the alpha in the areas you wish to discard

  • Upvote 1

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

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...