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

Feature request: Custom attributes #174

Open
spacejack opened this issue Feb 5, 2018 · 2 comments
Open

Feature request: Custom attributes #174

spacejack opened this issue Feb 5, 2018 · 2 comments

Comments

@spacejack
Copy link

Would be great to have something like three.js's BufferGeometry that allows us to use custom attributes for our own shaders.

Additionally, InstancedBufferGeometry as a way to use instancing.

There is also InterleavedBuffer and InstancedInterleavedBuffer, perhaps these should also be considered?

@vitvakatu
Copy link
Member

Blocked by gfx-hal support.
@spacejack for your information, Three already supports instancing (see Factory::mesh_instance method)

@kvark kvark removed the blocked label Feb 6, 2018
@kvark
Copy link
Collaborator

kvark commented Feb 6, 2018

@vitvakatu I don't think this is blocked by HAL. Created #175 to discuss this separately.

We should find a way to extend the custom shader support with:

  • a single user-provided vertex buffer
  • (option) a single user-provided instance buffer (can be empty)
  • a single user-provided constant buffer

This is fairly limited for sure, but we aren't aiming for the full-blown customization.

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

3 participants