面试题答案
一键面试// 定义顶点属性类型
type VertexAttribute = {
position: number[]; // 位置信息,通常是 [x, y, z] 格式
color: number[]; // 颜色信息,例如 [r, g, b, a] 格式
};
// 定义顶点属性类型
type VertexAttribute = {
position: number[]; // 位置信息,通常是 [x, y, z] 格式
color: number[]; // 颜色信息,例如 [r, g, b, a] 格式
};