# How to transfer attribute ary to 3dtiles shader

**URL:** <https://community.cesium.com/t/how-to-transfer-attribute-ary-to-3dtiles-shader/29636>\
**Category:** 3D Tiles\
**Created:** [January 30, 2024, 2:58pm UTC](https://community.cesium.com/t/how-to-transfer-attribute-ary-to-3dtiles-shader/29636 "2024-01-30T14:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chen21439](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/chen21439/32/14037_2.png) [@chen21439](https://community.cesium.com/u/chen21439)\
**Post date:** [January 30, 2024, 2:58pm UTC](https://community.cesium.com/t/how-to-transfer-attribute-ary-to-3dtiles-shader/29636/1 "2024-01-30T14:58:07Z")

</div>

```auto
new Cesium.Geometry({
        attributes: {
          //几何顶点属性
          position: new Cesium.GeometryAttribute({
            componentDatatype: Cesium.ComponentDatatype.DOUBLE, //数据类型
            componentsPerAttribute: 3, //定义几个为一组
            values: positions, //坐标值
          }),
          // st: new Cesium.GeometryAttribute({
          // componentDatatype: Cesium.ComponentDatatype.FLOAT, //数据类型
          // componentsPerAttribute: 2, //定义几个为一组
          // values: sts, //坐标值
          // }),
          color: new Cesium.GeometryAttribute({
            componentDatatype: Cesium.ComponentDatatype.FLOAT,
            componentsPerAttribute: 4,
            values: colors,
          }),
          alpha: new Cesium.GeometryAttribute({
            componentDatatype: Cesium.ComponentDatatype.FLOAT,
            componentsPerAttribute: 1,
            values: thas.alpha,
          }),
        },
        indices: positionIndex,
        //POINTS TRIANGLE_STRIP TRIANGLES
        primitiveType: Cesium.PrimitiveType.TRIANGLES,
        boundingSphere: Cesium.BoundingSphere.fromVertices(positions), //包围球
      })

```

is 3dtile have way to get custom data in shader like this?
