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

feat: Custom Vertex Attributes #972

Open
emadurandal opened this issue Jan 26, 2022 · 0 comments
Open

feat: Custom Vertex Attributes #972

emadurandal opened this issue Jan 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request Priority_High main issues for new release

Comments

@emadurandal
Copy link
Collaborator

emadurandal commented Jan 26, 2022

This feature is ...

  • Implement the System for Custom Vertex Attribute Layout like:
    • VertexAttributeSlot 0: "Position.X, Position.Y, Position.Z, Texcoord.X"
    • VertexAttributeSlot 1: "Normal.X, Normal.Y, Normal.Z, Texcoord.Y"
  • Add the shader system which converts their custom layout vertex attributes to each standard vertex attribute (Position, Normal, Texcoord, etc...)
  • Add the "CustomVertexAttribute" class, which has functionalities of view / copy to a target vertex attributes layout from an original vertex attributes layout.

The shader system converts this:

attribute vec4 a_customAttribute0;
attribute vec4 a_customAttribute1;

to

vec3 v_position = a_customAttribute0.xyz;
vec3 v_normal = a_customAttribute1.xyz;
vec2 v_texcoord = vec2(a_customAttribute0.w, a_customAttribute1.w);
@emadurandal emadurandal self-assigned this Jan 26, 2022
@emadurandal emadurandal added the enhancement New feature or request label Jan 26, 2022
@emadurandal emadurandal added this to the v0.6.0 milestone Jan 26, 2022
@emadurandal emadurandal linked a pull request Jan 26, 2022 that will close this issue
@emadurandal emadurandal added the Priority_High main issues for new release label Jan 26, 2022
@emadurandal emadurandal modified the milestones: v0.6.0, v0.7.0 Apr 7, 2022
@emadurandal emadurandal modified the milestones: v0.9.0, v0.10.0 Jul 13, 2022
@emadurandal emadurandal removed this from the v0.11.0 milestone Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority_High main issues for new release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant