Set rotation of a material

When my player rotates, I can set my players rotation so that the sprite walks the correct way:


void A****Character::MoveRight(float Value)
{
	// Update animation to match the motion
	UpdateAnimation();

	// Set the rotation so that the character faces his direction of travel.
	if (Value < 0.0f)
	{
		Sprite->SetWorldRotation(FRotator(0.0, 180.0f, 0.0f));
	}
	else if (Value > 0.0f)
	{
		Sprite->SetWorldRotation(FRotator(0.0f, 0.0f, 0.0f));
	}

	// Apply the input to the character motion
	AddMovementInput(FVector(1.0f, 0.0f, 0.0f), Value);
}

However, my player has a material and obviously it doesn’t get lit going the other way I guess because the normal map is not rotated too, I can’t find any material rotation functions in the documentation… Any helps?

I went into that graph editor thingy where I defined my material… I enabled two sided but that turned off all lighting to it.

I had to untick tangent space normal… Makes sense.