How do you add indices to the new Geometry in v8? Zero documentation or examples online #10539
-
Hi I've been struggling with the new Geometry class in v8 and cant find any examples online or documentation on it to draw a square. The only thing i can draw is triangles, i know i have to set the indices, but all the examples are on v7
addIndex has been removed, also there is no indices in Geometry Class
There is also no examples i can find anywhere, but sound a little dumb, but how do i draw a square in the new V8? is something like this possible in v8? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I got some success using MeshGeometry which accept indices but there is no way to pass in attributes like colors which was possible in the previous versions. There is no addAttribute method MeshGeometry, this makes it impossible to pass attributes other than positions and uvs to the shader like colors
|
Beta Was this translation helpful? Give feedback.
-
ahh it was called indexBuffer in Geometry closing |
Beta Was this translation helpful? Give feedback.
ahh it was called indexBuffer in Geometry closing