Hi again!
I searched the forum but found nothing that worked for me.
I have an object with custom shading, the shader sets alpha values between 0 and 1 for every fragment. So there are parts of the texture that are more translucent than others.
I played for hours with the commands SetObjectAlphaMask, SetObjectTransparency, SetObjectBlendModes and also with SetObjectDepthWrite.
But I cannot achieve the desired drawing mode:
The less the alpha value, the less the fragment should be drawn above the background (until it gets invisible for alpha = 0.0).
As I said, the alpha-channel is varying per pixel of the texture, so there are some pixels full translucent (=invisible), some full opaque and some between.
What I achieved with playing with the parameters is:
- Object not drawn at all
- Full Translucent parts of texture correct cropped, but some strange depth issues (only parts of object get drawn if there is another object behind it)
- Correct cropping but complete object is semi-translucent
- ...
Can someone suggest a possible correct parameter-set for this case?
Thanks in advance,
The Sandwich