laya-coreui-es
Version:
laya核心库、ui库es版本,剔除了媒体、TTF等功能。基于 LayaAir-release_2.12.0 修改
18 lines (17 loc) • 555 B
JavaScript
import { Value2D } from "./Value2D";
import { ShaderDefines2D } from "../ShaderDefines2D";
export class TextureSV extends Value2D {
constructor(subID = 0) {
super(ShaderDefines2D.TEXTURE2D, subID);
this.strength = 0;
this.blurInfo = null;
this.colorMat = null;
this.colorAlpha = null;
this._attribLocation = ['posuv', 0, 'attribColor', 1, 'attribFlags', 2];
}
clear() {
this.texture = null;
this.shader = null;
this.defines._value = this.subID;
}
}