export function diagnoseThreeCompatShader(vertexShader, fragmentShader) {
    const errors = [
        ...(!vertexShader.includes("void main") ? ["vertex shader missing void main"] : []),
        ...(!fragmentShader.includes("void main") ? ["fragment shader missing void main"] : []),
        ...(/gl_FragColor/.test(fragmentShader) ? ["fragment shader uses legacy gl_FragColor; use explicit output for modern targets"] : [])
    ];
    const warnings = [
        ...(!/precision\s+(highp|mediump)/.test(fragmentShader) ? ["fragment shader precision is implicit"] : [])
    ];
    return { pass: errors.length === 0, errors, warnings };
}
//# sourceMappingURL=ShaderDiagnostics.js.map