Default DiffAlpha don't receive shadows?

I created a very simple material with the default DiffAlpha technique:

    <technique name="Techniques/DiffAlpha.xml" />

And unfortunately, shadows are not seen on it. If I replace it with ‘Diff.xml’ I get shadows to work, but ofc I don’t get the transparent background that I want.

Is this intentional? How can I get a technique like Diff Alpha but have shadows on it? (note: I’m talking about receiving shadows not casting them).

Thanks! :slight_smile:

Which OS you are using ? i’m on Win7 Urho 1.5 and it works without any problem.

May I ask why? :face_with_raised_eyebrow:

@NessEngine You should be able to weave the passes of the two techniques to get the result you seem to be looking for.


I have a heavily modified version of Urho3d which isn’t remotely compatible with the master version. Unfortunately i don’t have time for rewrite the 1.7 to fit my needs so i just stick with my custom 1.5 for now :slight_smile:

Any chance you post an example or tutorial on that subject? Tried to play around with it but it didn’t work (I’m just learning Urho now, kinda new to its material system :slight_smile: )


1 Like

@NessEngine Even though I got out of it what I was looking for once or twice I still feel like a whale on Arrakis flapping my fins in hopes to be magically zapped to Waconda Lake.

Try duplicating the Diff technique and (partially?) replacing the following lines:

    <pass name="base" />
    <pass name="litbase" psdefines="AMBIENT" />

…with these one from the DiffAlpha technique…

    <pass name="alpha" depthwrite="false" blend="alpha" />
    <pass name="litalpha" depthwrite="false" blend="addalpha" />

…without any hopes of instant rehydration. :whale2:

1 Like