[SOLVED] alphaBlendStartEnd doesn't work

univerpix
Posts: 21
Joined: Fri Dec 26, 2014 11:52 am

[SOLVED] alphaBlendStartEnd doesn't work

Post by univerpix »

The alphaBlendStartEnd parameter doesn't work. It has no effect.
If I replace the variables with values in the fruitGrowthFoliageShader.xml it works. But if I change the values in material parameter, the blending doesn't work.
It works in GE, but doesn't work ingame.
I think it has a name conflict, because if I rename the variable in the shader, and in the material of the foliages it works.
fruktor
Former GIANTS employee
Posts: 109
Joined: Thu Nov 05, 2009 12:48 pm

Re: alphaBlendStartEnd doesn't work

Post by fruktor »

Hi,

well, that behavior is intended.

A 'base script' sets this shader parameter to a certain value when loading a map, depending on the clip distance of the foliage.
Therefore the blending will always be done over a range of 4m.
But the 'visibility range' is determined by the clip distance.

Actually I don't see a reason for changing the 'blending range'.
Except you want to shrink it.

By the way, adjusting the clip distance in a map is not a good idea.
You can easily adjust it in the advanced graphics options.

Cheers,
fruktor
Post Reply