Skip to content

Mutable Materials - #992

Open
bjornbytes wants to merge 6 commits into
devfrom
mutable-materials
Open

Mutable Materials#992
bjornbytes wants to merge 6 commits into
devfrom
mutable-materials

Conversation

@bjornbytes

@bjornbytes bjornbytes commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Adds support for modifying materials after they're created.

  • Material:get/setNumber
  • Material:get/setVector
  • Material:get/setTexture
  • Material:get/setQuad

Other things to consider:

  • Material:clone?
  • Deprecate Material:getProperties?
  • newMaterial(texture)?
  • Material:setTexture(texture) defaults to color?
  • Explicit Material:get/setColor methods that do sRGB conversion, or just always do sRGB conversion for color/glow vectors?
  • Is Model:setMaterial a good idea?

@bjornbytes bjornbytes linked an issue Jul 31, 2026 that may be closed by this pull request
@bjornbytes
bjornbytes force-pushed the mutable-materials branch 4 times, most recently from 798609b to e1c7670 Compare August 10, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mutable Materials

1 participant