FlattenPolygonShader

局部区域压平着色器

new YS.FlattenPolygonShader(ys, i3d, points)

多边形压平shader
Name Type Description
ys YouScene YouScene实例
i3d I3d 3d对象
points Array.<XY> 多边形的边线点数组,单位是模型坐标单位
Implements:
Example:
var shader2 = new YS.FlattenPolygonShader(that.ys, that.scene, polygon);//polygon是模型坐标数组
shader2.update(1900);//踏平后的模型高度

Methods

update(z)

多边形压平shader,调整压平后z值时使用
Name Type Description
z float optional 压平后z值,模型坐标
Implements: