Explanation of jit.gl.buffer @type
Jan 23 2022 | 10:09 am
Hi,
I am trying to move some calculations from the cpu to the gpu by using jit.gl.tf with jit.gl.buffer instead of jit.gen with jit.matrix. I understand how the buffer types 'position' and 'color' bind to the jit.gl.mesh object, but I am unsure the others, especiall vertex_attr, so I don't know which type to use for which value and how to bind them correctly (and what to do with values that don't need to be bound to the mesh but still are need to be calculated every time). The reference does not explain the different types in detail, so I was wondering if there is an explenation somewhere that I overlooked.