setW method

  1. @override
InterleavedBufferAttribute setW(
  1. int index,
  2. double w
)
override

Sets the w component of the vector at the given index.

Implementation

@override
InterleavedBufferAttribute setW(int index, w) {
  data!.array[index * data!.stride + offset + 3] = w;
  return this;
}