drawFront 绘制前景粒子
drawFront
类型: MethodDeclaration
所属类: AnimationParticleEmitterManager
定义位置: animation.ts
描述
绘制前景粒子
参数 matrix: 投影矩阵
参数 opacity: 不透明度
参数
| 参数名 | 类型 | 描述 | 默认值 |
|---|---|---|---|
matrix | Matrix | - | - |
opacity | number | - | - |
返回值
类型: void
源代码
位置: 第 1356 行
public drawFront(matrix: Matrix, opacity: number): void {
for (const emitter of this.frontList) {
const emitterOpacity = emitter.opacity
emitter.opacity *= opacity
emitter.draw(matrix)
emitter.opacity = emitterOpacity
}
}
文档生成时间:2026/2/1 16:51:38