扫描环shader
Name | Type | Description |
---|---|---|
ys |
YouScene | YouScene实例 |
i3d |
I3d | 3d对象 |
- Implements:
Example:
var shader = new YS.ScanningCircleShader(that.ys, model);
shader.init([0,0], YS.Color.RED, 100, 10); //开始工作
shader.update([100,100]); //更新扫描中心
Methods
-
初始化shader
Name Type Description options
Object optional options Name Type Description programs
Array.<Number> optional 要更改shader的program序号数组 - Implements:
-
更新shader数据
- Implements: