Hi devs,
I think that we have a problem with alpha in HLSL shader.
The green circle should be totaly transparent in the second case. Look at the attached pictures and the shader code.
We would appreciate a quick fix if it's a real bug.
Thx
R
Hello Ventuzians!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
THE FORUMS ARE CLOSED!
Please join our discord server HERE!! << click me
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!
Shader issue with alpha
Moderator: Support
Re: Shader issue with alpha
The output is pre-multiplied. Apply your alpha to RGB before outputting it (multiply RGB * A)
Re: Shader issue with alpha
Ok man you are my master
Thank you lerou !
R
Thank you lerou !
R
Re: Shader issue with alpha
Hello lerou,
Do you know the new semantic for this ?
...
AlphaBlendEnable
AlphaTestEnable
BlendOp
CullMode
DestBlend
SrcBlend
StencilEnable
StencilFail
StencilFunc
StencilMask
StencilPass
StencilRef
StencilWriteMask
StencilZFail
ZEnable
ZFunc
ZWriteEnable
Do you know the new semantic for this ?
Code: Select all
AlphaBlendEnable = TRUE;
AlphaBlendEnable
AlphaTestEnable
BlendOp
CullMode
DestBlend
SrcBlend
StencilEnable
StencilFail
StencilFunc
StencilMask
StencilPass
StencilRef
StencilWriteMask
StencilZFail
ZEnable
ZFunc
ZWriteEnable
Re: Shader issue with alpha
Those parameters can be set up using native Ventuz nodes.
Re: Shader issue with alpha
you can also set them up in the technique section of the Shader. See Ventuz doc for details.