水印shader,开始使用水印时调用
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ys |
YouScene | YouScene实例 | |||||||||||||||
i3d |
I3d | 3d对象 | |||||||||||||||
url |
string | 水印图片的链接地址 | |||||||||||||||
options |
Object |
optional
附加参数
|
- Implements:
Example:
var shader = new YS.WatermarkShader(that.ys, model,
'images/index/分析.png',
{
p1: { x: 0, y: 0 },
p2: { x: 300, y: 300 },
alpha: 0.5
});
Methods
-
初始化shader
Name Type Description options
Object optional options Name Type Description programs
Array.<Number> optional 要更改shader的program序号数组 - Implements:
-
更新shader数据
- Implements: