Sorry, for the double post, but I forgot to mention that this only works with #PB_Shadow_TextureAdditive.
I don't believe it's possible to get the desired effect with Modulative or Additive shadow types.
Minus_Alpha argument
Re: Minus_Alpha argument
Thanks Samuel. I'll be experimenting with your example.Samuel wrote:Check my previous post. Should take care of his and your problem. I think.....
PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: Minus_Alpha argument
Yes. It's working.
Thanks Samuel!

PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: Minus_Alpha argument
Yes. But it is a shadow. Then we can find the settings.Bananenfreak wrote:Hmm, look at my screenshot. The shadows don´t work correctly...

PureBasic 5.11 | WinXP | 2GB RAM | GForce GT240
Re: Minus_Alpha argument
I'm guessing your talking about the shadows being on both sides of the tree trunk. I've had this happen before if my mesh is below the ground.Bananenfreak wrote:Hmm, look at my screenshot. The shadows don´t work correctly...
Try raising the tree to match the ground level and see if that fixes them.
EDIT
I believe this is an issue with TextureAdditive shadows and not the material script.
Hopefully, raising them will solve your problem. I'll try to find out why it does this later on.
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: Minus_Alpha argument
I do not mean the treetrunk, but the foliage. Look at the leaves, they´re overlapping itself and destroy the shadows of the others...