#How to get transform matrix in Vertex Shader
1 messages · Page 1 of 1 (latest)
https://jannik4.github.io/shader_docs/bevy/latest/bevy/index.html is kind of the best we have when it comes to shader docs at the moment.
I'm not sure what you mean by the entity's transform matrix, but maybe you mean these: https://jannik4.github.io/shader_docs/bevy/latest/bevy/bevy_pbr/mesh_types/struct.Mesh.html
There's also the view matrices. https://jannik4.github.io/shader_docs/bevy/latest/bevy/bevy_render/view/struct.View.html
People like that site, but I personally find myself in the code more, often in this directory: https://github.com/bevyengine/bevy/tree/main/crates/bevy_pbr/src/render
the equivalent mesh file would be https://github.com/bevyengine/bevy/blob/main/crates/bevy_pbr/src/render/mesh_types.wgsl
and the bindings are here: https://github.com/bevyengine/bevy/blob/main/crates/bevy_pbr/src/render/mesh_bindings.wgsl
Thank you sir, that is exactly what I was looking for! I feel like the examples could benefit from including some of these links?
the shader docs site is unofficial, so not sure it can be linked from the examples. I suppose the code locations could be, but they'd have to get updated if the code ever got refactored so maybe?
realistically, I'm expecting WESL to make an impact on the availability of shader docs. There's already someone hacking on a "wesldoc" that includes struct definitions and examples in the docs, etc