Beispiel #1
0
        protected override void SetTextureCoordinates(Geometry <V> geometry)
        {
            var fac = _repeat.Convert <Vec2i, Vec2> ();

            if (_flipVertically)
            {
                geometry.ApplyTextureFront(1f, TexturePos.TopLeft * fac, TexturePos.BottomRight * fac);
            }
            else
            {
                geometry.ApplyTextureFront(1f, TexturePos.BottomLeft, TexturePos.TopRight * fac);
            }
        }