Operator operator +
operator +(Vertex, Vertex)
Adds two Vertex objects together and returns the result in a new Vertex object. Addition is performed component-wise for every attribute on the Vertex.
Declaration
public static Vertex operator +(Vertex a, Vertex b)
Parameters
Type | Name | Description |
---|---|---|
Vertex | a | Left operand. |
Vertex | b | Right operand. |
Returns
Type | Description |
---|---|
Vertex | A new Vertex with the sum of |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.