Nez.Portable/ECS/Components/Renderables/PolygonLight/PolyLight.cs
/// <summary>
/// adds a vert to the list
/// </summary>
/// <param name="position">Position.</param>
/// <param name="texCoord">Tex coordinate.</param>
adds a vert to the list
adds a vert to the list
[MethodImpl(MethodImplOptions.AggressiveInlining)]
        void addVert(Vector2 position)
        {
            var index = _vertices.length;
            _vertices.ensureCapacity();
            _vertices.buffer[index].Position = position.toVector3();
            _vertices.buffer[index].TextureCoordinate = position;
            _vertices.length++;
        }
[ MethodImpl ( MethodImplOptions . AggressiveInlining ) ] void addVert ( Vector2 position ) { var index = _vertices . length ; _vertices . ensureCapacity ( ) ; _vertices . buffer [ index ] . Position = position . toVector3 ( ) ; _vertices . buffer [ index ] . TextureCoordinate = position ; _vertices . length ++ ; }
adds a vert to the list
adds a vert to the list
position
Vector2
None
texCoord
None