import { PMaterialType } from '../common'; import type { PShaderContext } from '../shader'; /** * 着色器代码生成类 */ export declare class StandardShader { /** * WebGL 环境 */ static environment: string; /** * 获取顶点着色器代码 * @param context - 着色器上下文 * @returns */ static getVertexShaderCode(context: PShaderContext): string; /** * 获取片段着色器代码 * @param context - 着色器上下文 * @returns */ static getFragmentShaderCode(context: PShaderContext): string; static genVertexShaderCode(materialType: PMaterialType): string; /** * 获取片段着色器代码 * @param materialType - 材质类型 * @returns */ static genFragmentShaderCode(materialType: PMaterialType): string; }