@three3d/effect
Version:
@three3d/effect 提供了 ThreeJS 的特效
19 lines (10 loc) • 676 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@three3d/effect](./effect.md) > [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 之外的材质的顶点着色器增加的代码