---
title: barycentric
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/pixelcasthit/barycentric
---

# barycentric

The barycentric coordinate of the primitive. See the discussion of [[barycentric_coord]] in Section “5.2.3.4 Fragment Function Input Attributes” of Metal Shading Language Specification

## Declaration

```swift
var barycentric: SIMD3<Float>? { get }
```
