Skip to content

Allow mat2/3/4 as attribute types #1652

Description

@Popov72

That would be nice (and would help our WebGPU support in Babylon.js) to allow having attributes of types mat2/3/4 in the vertex shader.

According to @kainino0x, Vulkan does allow it, for Metal/D3D12 it has to be looked for.

Note that we can do it in WebGL by "binding" 4 vec4 in sequence with enableVertexAttribArray/vertexAttribPointer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU API

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions