Esempio n. 1
0
        private PositionNormalIndexedTriangleBuffer InternalGetPositionNormalIndexedTriangleBuffer(IMaterial material)
        {
            var materialKey = new MaterialKey(material);

            if (!_positionNormalIndexedTriangleBuffers.TryGetValue(materialKey, out var result))
            {
                result = new PositionNormalIndexedTriangleBuffer(this);
                _positionNormalIndexedTriangleBuffers.Add(materialKey, result);
            }

            return(result);
        }
Esempio n. 2
0
		private PositionNormalIndexedTriangleBuffer InternalGetPositionNormalIndexedTriangleBuffer(IMaterial material)
		{
			PositionNormalIndexedTriangleBuffer result;
			var materialKey = new MaterialKey(material);
			if (!_positionNormalIndexedTriangleBuffers.TryGetValue(materialKey, out result))
			{
				result = new PositionNormalIndexedTriangleBuffer(this);
				_positionNormalIndexedTriangleBuffers.Add(materialKey, result);
			}

			return result;
		}