Decal only appears on some surfaces?

Hey, I was creating a simple decal material which should show my generated QR code in a texture parameter. No problem at all. I created the material, and thats how it is finished (pretty simple):

http://i.imgur.com/iKPpbC3.png

Now, if I use this inside a deferred decal object, and point that on the floor, it looks as intended:

http://i.imgur.com/isq9YFP.png

But if I point this against the wall (strange thing is that it works with the other walls, but not those ones…):

http://i.imgur.com/pkVosty.png

Why does this happen? Is this a problem with my shader?
Thanks for help :slight_smile:

Edit: [Here][4] is also a GIF showing the problem!

Hi

did you rebuilt light to see if it appears?

I just tried that out, but still the same problem. Also, that would’nt be the perfect solution as I need to place those decals dynamicially at runtime.

Are you rotating the decal properly? That blue arrow should face opposite the surface.

Hello iUltimateLP -

You are rotating your Decal into indirect lighting and the type of decal you are using will not render in indirect lighting. Take a look at this Answer for details on how to get the decal to render the way you want it to:

Thank You

Eric Ketchum

That worked! So it needs to recompile 4000 shaders but however, it works!