Center Texture

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
ApfelPresse
Gnoblar
Posts: 5
Joined: Mon Oct 28, 2013 3:43 pm

Center Texture

Post by ApfelPresse »

Hi,
how can i center my texture?

here is my Material

Code: Select all

material Map
{
	technique
	{
		pass
		{
			texture_unit
			{
				texture Texture.png
				scale 1 1
			}
		}
	}
}
thanks
Attachments
Texture.jpg
Texture.jpg (255.31 KiB) Viewed 376 times
Map.jpg
Map.jpg (134.09 KiB) Viewed 376 times
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: Center Texture

Post by Kojack »

The texture unit's scroll command is probably what you want.
http://www.ogre3d.org/docs/manual/manual_17.html#scroll
ApfelPresse
Gnoblar
Posts: 5
Joined: Mon Oct 28, 2013 3:43 pm

Re: Center Texture

Post by ApfelPresse »

Perfekt, thanks :D
Post Reply