Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy