@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
22 lines • 783 B
TypeScript
import { ArrayNumber4, WebglAttributeType, WebglUniformType } from "../types";
import { TgdVec4 } from "../math";
import { TgdMaterial } from "./material";
import { TgdCodeBloc } from "../shader/code";
import { TgdProgram } from "../program";
export type TgdMaterialSolidOptions = Partial<{
color: ArrayNumber4 | TgdVec4;
}>;
export declare class TgdMaterialSolid extends TgdMaterial {
color: TgdVec4;
readonly varyings: {
[name: string]: WebglAttributeType;
};
readonly uniforms: {
[name: string]: WebglUniformType;
};
readonly fragmentShaderCode: TgdCodeBloc;
readonly vertexShaderCode: TgdCodeBloc;
constructor(options?: TgdMaterialSolidOptions);
setUniforms(program: TgdProgram): void;
}
//# sourceMappingURL=solid.d.ts.map