Archive 17/01/2023.

[SOLVED] Normalmap strange behavior

codingmonkey

Hi!
I’m create material for floor-plane that contains diffmap and normalmap and in normal map within the alpha channel i’m also store AO for this floor-plane .
And the strange behavior it is because in material editor it’s looks - ok but on the object it’s look as simple diffmap only.

codingmonkey

Well, I found my problem. Then i going to look into shader code for how is normalmapped-objects draw.

#ifndef NORMALMAP
out float2 oTexCoord : TEXCOORD0,
#else
out float4 oTexCoord : TEXCOORD0,
out float4 oTangent : TEXCOORD3,

then doing export object need to be “tangent” option to be - ON