Page 1 of 1

shaderHelp

Posted: 24 Jun 2013, 12:38
by chriss0212
hi all

i found this shader which is pretty cool....but if i put an alpha node in front....alpha is not blending ;(

at the moment my workaround is using a render to texture node...but maybe there is another solution?

maybe somebody can help?!

greetz

christian

Re: shaderHelp

Posted: 26 Jun 2013, 14:06
by GlareTechnologies
Hi Christian,

nice shader, indeed.

To enable Alpha you need to modify the HLSL code a bit.

First Add this:

Code: Select all

float Alpha
<
	string SasBindAddress = "Ventuz.Material.Alpha";
>;
...

Code: Select all

	c=c/kk;
	
	c.w *= Alpha;   //Add this line
	
	return c;

Beside that you maybe need to set AlphaBlending node with alpha blending parameters manually, but in my test it worked out of the box.

Regards,

Glare-Technologies

Re: shaderHelp

Posted: 26 Jun 2013, 19:13
by chriss0212
wwwwwoooowwww!

and glare did it again ;)

thx to my shader pro's!!

greetz

christian