mylingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
35 lines (34 loc) • 1.47 kB
TypeScript
import { MeshStandardMaterial, SpriteMaterial, Vector2 } from "three";
import ITexturedBasic from "../../../interface/ITexturedBasic";
export default abstract class TexturedBasicMixin implements ITexturedBasic {
protected abstract material: MeshStandardMaterial | SpriteMaterial;
protected materialCloned?: boolean;
protected tryCloneMaterial(): void;
get color(): string;
set color(val: string);
get fog(): boolean;
set fog(val: boolean);
private _opacity?;
get opacity(): number;
set opacity(val: number);
protected applyTexture(mapNames: Array<string>): void;
private videoTextureState?;
private textureState?;
private initTexture;
get videoTexture(): string | HTMLVideoElement | undefined;
set videoTexture(url: string | HTMLVideoElement | undefined);
get texture(): string | undefined;
set texture(url: string | undefined);
private _alphaMap?;
get alphaMap(): string | undefined;
set alphaMap(val: string | undefined);
protected _textureRepeat?: Vector2;
get textureRepeat(): Vector2 | number | undefined;
set textureRepeat(val: Vector2 | number | undefined);
protected _textureFlipY?: boolean;
get textureFlipY(): boolean | undefined;
set textureFlipY(val: boolean | undefined);
protected _textureRotation?: number;
get textureRotation(): number | undefined;
set textureRotation(val: number | undefined);
}