Skip to content
","upvoteCount":1,"url":"https://github.com/zeux/meshoptimizer/discussions/744#discussioncomment-10408934"}}}

Using the library output in GLSL mesh shader #744

Answered by zeux
Yossi4x6fu asked this question in Q&A
Discussion options

You must be logged in to vote

Let me know if you have ideas for how to improve documentation for meshopt_Meshlet structure (https://github.com/zeux/meshoptimizer/blob/master/src/meshoptimizer.h#L473-L489) or mesh shading section (https://github.com/zeux/meshoptimizer/blob/master/README.md#mesh-shading) except for adding a GLSL example - which I will do.

The vertices offset refers to the offset in the vertex indirection buffer (meshlet_vertices) and is just there so that from a mesh shader you can quickly locate the relevant section. Here's an example from https://github.com/zeux/niagara (reworked a little to simplify, untested but you can refer to the actual shader here https://github.com/zeux/niagara/blob/master/src/…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Yossi4x6fu
Comment options

@zeux
Comment options

zeux Aug 23, 2024
Maintainer

@Yossi4x6fu
Comment options

Answer selected by zeux
Comment options

You must be logged in to vote
1 reply
@zeux
Comment options

zeux Aug 25, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants