Commit 06cde322 authored by 邱旭's avatar 邱旭

更新,3D模型骨骼使用纹理贴图的形式传数据,提升骨骼数量上限

parent 4e929153
......@@ -32,7 +32,7 @@ export class Stage extends Container {
* @public
* @since 1.0.0
* @type {Rectangle}
* @default
* @default
* @readonly
*/
public viewRect: Rectangle = new Rectangle();
......@@ -359,8 +359,8 @@ export class Stage extends Container {
* 这里会按照原_dpi修改canvas的实际尺寸
* 一般设备的dpi不会改变,
* web全屏环境可不传参数,否则自行计算显示尺寸传入
* @param divWidth
* @param divHeight
* @param divWidth
* @param divHeight
* @example
* window.addEventListener('resize', () => {stage.resize()});
*/
......@@ -501,7 +501,8 @@ export class Stage extends Container {
e.identifier = 0;
points = [e];
} else {
points = [e.changedTouches[0]];
// points = [e.changedTouches[0]];
points = e.changedTouches;
}
// points = [e.changedTouches[0]];
// points = [e.touches[0]];//不能用这个
......@@ -525,8 +526,8 @@ export class Stage extends Container {
} else {
cp = new Point();
}
cp.x = ((points[o].pageX || points[o].x || points[o].b || 0) - offsetX) * s._dpi// devicePixelRatio;
cp.y = ((points[o].pageY || points[o].y || points[o].c || 0) - offsetY) * s._dpi// devicePixelRatio;
cp.x = ((points[o].pageX || points[o].x || points[o].b) - offsetX) * s._dpi// devicePixelRatio;
cp.y = ((points[o].pageY || points[o].y || points[o].c) - offsetY) * s._dpi// devicePixelRatio;
// my.alert({
// title: JSON.stringify(points[o])
// });
......@@ -756,4 +757,4 @@ export class Stage extends Container {
s._ml = null;
super.destroy();
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment