我正在使用Three.js和自定义着色器以及统一和属性值,我的问题是在哪里可以找到各种属性和统一值的所有类型的列表(例如为纹理列出的, “t”; vector3s,“v3”;以及浮点数,“f”如下)。
this.customUniforms =
{
texture1: { type: "t", value: discTexture }, // <<< looking for a reference that lists all the valid types such as "t", "f" and "v3"
texture2: { type: "t", value: hatchTexture },
mixAmount: { type: "f", value: 0.0 }
};
this.customAttributes =
{
endPosition: { type: "v3", value: [] }
};