We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)]
The text was updated successfully, but these errors were encountered: