Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

shaderHelp

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
chriss0212
Posts: 666
Joined: 18 Jan 2012, 20:56
Location: wuppertal
Contact:

shaderHelp

Post by chriss0212 » 24 Jun 2013, 12:38

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
Attachments
BlurShader.vza
(789.22 KiB) Downloaded 368 times

GlareTechnologies

Re: shaderHelp

Post by GlareTechnologies » 26 Jun 2013, 14:06

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

chriss0212
Posts: 666
Joined: 18 Jan 2012, 20:56
Location: wuppertal
Contact:

Re: shaderHelp

Post by chriss0212 » 26 Jun 2013, 19:13

wwwwwoooowwww!

and glare did it again ;)

thx to my shader pro's!!

greetz

christian

Post Reply