tex_address_mode mirror in normalmap

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
jordiperezarti
Kobold
Posts: 35
Joined: Sun Sep 01, 2024 7:50 pm

tex_address_mode mirror in normalmap

Post by jordiperezarti »

In the material definition i set tilling repeat usinr mirror:

tex_address_mode mirror

the texture_unit does it well, but the normalmap is not adquiring the tex_address_mode mirror
how can i solve this?

material floor
{
technique
{
pass
{
texture_unit
{
texture floor_diffuse.PNG
tex_address_mode mirror
}

Code: Select all

		rtshader_system
		{
           			lighting_stage normal_map floor_normalmap.PNG
		}
	}
}

}

paroj
OGRE Team Member
OGRE Team Member
Posts: 2108
Joined: Sun Mar 30, 2014 2:51 pm
x 1134

Re: tex_address_mode mirror in normalmap

Post by paroj »

User avatar
jordiperezarti
Kobold
Posts: 35
Joined: Sun Sep 01, 2024 7:50 pm

Re: tex_address_mode mirror in normalmap

Post by jordiperezarti »

lighting_stage normal_map floor_normalmap.PNG object_space

makes the texture coords be fine with the mirror propertie.
But the integrated shadows disappears, when was running with the normalmap tangent_space