Log in or register to post comments


June 15, 2013 - 1:19pm #1


there is a method to have shadow catcher plane under 3D model when it is rendered in app?

I'm tring to illuminate my scene using light map and I want have shadows of the object rendered over the real printed target.

Someone have some idea?


Tank You


May 16, 2016 - 12:29am #14


May 15, 2016 - 11:06am #13

me too  


March 15, 2016 - 8:38am #12

Using the new 5-5-9 vuforia unitypackage, the shader does only work in Editor-view. In game-view no shadows appear :/ Someone has a fix for that?


January 13, 2016 - 7:51pm #11

Hi, this shader doesn't seem to be affected by ambient light increase. I'm trying because the shadow is too black. I want to lighten it up a little. Any ideas on how?


July 13, 2014 - 2:39am #10

Awesome, I have find this kind of shader for long time!!!


June 25, 2013 - 2:55am #9

Thanks a lot!it is very helpful……  I will try it later ,but now my unity is dead because i am importing a lot of Image sequences,haha


June 24, 2013 - 9:21am #8

I checked with the Dev team on this and it appears that the target geometry is only used for editor visualisation and as such will not support shadows.

However it is possible to support shadows by overlaying a plane and then using a custom shader on it which will give you the appearance as shown in the attached picture, provided that 

1 The alpha cut-off is set to 0

2 The material colour is fully white

I got the shader from here:  http://forum.unity3d.com/threads/14438-Matte-Shadow?highlight=matte+shadow

and modified it slightly:



Shader "FX/Matte Shadow" {

Properties {

    _Color ("Main Color", Color) = (1,1,1,1)

    _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}

    _Cutoff ("Alpha cutoff", Range(0,1)) = 0.5


SubShader {

    Tags {"Queue"="AlphaTest" "IgnoreProjector"="True" "RenderType"="TransparentCutout"}

    LOD 200

Blend Zero SrcColor



#pragma surface surf ShadowOnly alphatest:_Cutoff

fixed4 _Color;

struct Input {

    float2 uv_MainTex;

} ;


inline fixed4 LightingShadowOnly (SurfaceOutput s, fixed3 lightDir, fixed atten)


    fixed4 c;

    c.rgb = s.Albedo*atten;

    c.a = s.Alpha;

    return c;



void surf (Input IN, inout SurfaceOutput o) {

    fixed4 c = _Color;

    o.Albedo = c.rgb;

    o.Alpha = 1;






Fallback "Transparent/Cutout/VertexLit"







Image icon Screen Shot 2013-06-24 at 17.06.51.png157.17 KB


June 22, 2013 - 11:49pm #7

Thanks very much.I have found that my model and imagetarget's scale is so large that i can not see the shadows from a long distance.I change the scale to 1/100 of orient scale so that i can see the shadows very well.Thanks again,very  appreciate


June 21, 2013 - 10:38am #6

Shadows can take quite a bit of setting up, so in my experience you need to spend some time experimenting.

I was able to get the Image Targets scene to show a shadow as per the picture attached by setting the shader to diffuse (so it is affected by light).  However there is a small issue in that the shader seems to set itself back to unlit / texture.

The other points to check are the shadow distance in quality settings, plus the shadow settings of the light and each individual object.  The other thing that can help is rotating the light in real-time just in case the directions are incorrect.





June 19, 2013 - 5:38am #5

Hi,thanks for replying.I have created a scene without Vuforia unity package,and i successed to create shadow for a cube.But a still can not make a shadow at imagetarget at runtime.I found blobprojecter works but it is not realtime effect.


June 18, 2013 - 3:12am #4

As Alessandro said this is more a Unity issue, so your best bet is to create a non Vuforia scene with some shadows, just to see if it works in the first instance, and then port it over to the Vuforia scene.

The Unity forums will help you more in this, as will searching the web.




June 17, 2013 - 7:32pm #3

Hi,I have the same problem of shadow things.i want to make the model has shadow on my print target that i can see it through my virtual camera.i have opened the lights shadow in my unity project, but i got nothing at imagetarget.Is there anyway to get it? will very thanks for help!!!


June 17, 2013 - 1:20am #2

Hi, this question is about Unity programming, there is nothing in Vuforia that would deal with such graphical effect. You would probably have better luck searching in the Unity website...


Log in or register to post comments