https://jsfiddle.net/Mihails/uko6dzwj
var colors = new Float32Array([
// All Ok with green color:
0, 250, 0,
0, 250, 0,
0, 250, 0,
// Issue is here. Why color is not magenta?
249,149,249,
249,149,249,
249,149,249,
]);
场景有BufferedGeometry(中间的平面有2个三角形):
为什么第二个三角形颜色错误?我在哪里犯了错误?
答案 0 :(得分:2)
颜色取三个.js范围内的值[0,1] - 而不是[0,255]。
three.js r.77