Hey there,

I played around with a little shockwave shader that I found recently here in the board and modified it to my needs.
In my testlevel everything works fine, but when I use the same shader in my project it just displays a white plane.

Here's what the code does:

- create a sprite with a normal map on skin1
- use a view (camera.stage) to project to rendered pic onto the sprite surface (TargetMap)
- the shader uses the normal map to do some bump mapping on the rendered pic

This works fine in my testlevel, but once built into my project the sprite just gets white.

When I replace the use of the TargetMap inside the shader by the bumpTexture I see the texture on skin1 bump mapped as expected. So it seems that there is a problem with the TargetMap.

Even if I just use a very simple pixel shader like:

float4 ps_test(float2 tex : TEXCOORD0) : COLOR {
float4 Color = tex2D(targetmap, tex);
return Color;
}

I just get this white plane.

I tried to extract as much of the project code as I can to find out where's the difference between my testlevel (that uses the same models and textures as in my project), but I wasn't successful yet.

Any hints where to search or what might be the problem with the TargetMap?

Best regards,
Sascha

Last edited by pegamode; 07/25/17 10:03.