Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle vertex #11

Open
5 tasks
samsartor opened this issue Oct 21, 2017 · 0 comments
Open
5 tasks

Particle vertex #11

samsartor opened this issue Oct 21, 2017 · 0 comments

Comments

@samsartor
Copy link
Member

A new vertex type should be added with the following parameters:

  • pub pos: [f32; 3]
  • pub tan: [f32; 3]
  • pub bitan: [f32; 3]
  • pub tex: [f32; 2]
  • pub tex_size: [f32; 2]

The motivating use case for this type is the generation of quads via the geometry shader. The quad will be created like so:

  • norm = tan x bitan
  • pos = [pos, pos + tan, pos + tan + bitan, pos + bitan]
  • tex = [tex, tex + vec2(tex.size.x, 0), tex + tex_size, tex + vec2(0, tex.size.y)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant