<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/effect](./effect.md) &gt; [lengthDrawRange\_vertex\_mainReplace](./effect.lengthdrawrange_vertex_mainreplace.md)

## lengthDrawRange\_vertex\_mainReplace variable

针对于一切带有 lineDistance attribute 的几何体的材质的顶点着色器增加的代码

**Signature:**

```typescript
lengthDrawRange_vertex_mainReplace = "\nattribute float lineDistance;\nvarying float vLineDistance;\nvoid main() {\n  vLineDistance = lineDistance;\n"
```

## Remarks

对于除 LineDashedMaterial 之外的材质的顶点着色器增加的代码

