Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Repeat Texture in Rectangle Area

$
0
0

@MarlonSecundo wrote:

I used this code for a texture to repeat in a certain area,

spriteBatch.Begin( sortMode : SpriteSortMode.Deferred, samplerState : SamplerState.LinearWrap, transformMatrix : Camera2D.LevelInstance.GetViewMatrix());
     
spriteBatch.Draw(Texture, Position, Bounds, Color.White * Alpha, 0, Vector2.Zero, Scale, Orientation, 0);

spriteBatch.End();

In some Y positions works correctly

In other positions does not work

Why?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles