Skip to content

materials #229

@Rismosch

Description

@Rismosch
  • have an array of textures
  • have an array of materials
  • material references texture by index
  • shader references material by index

thus, to render a mesh with an associated material, a single int needs to be passed. this easily fits into a push constant

a texture/material would be similarily implemented like the mesh lookup. maybe this can be generalized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions