Mutable Materials - #992
Merged
Merged
Conversation
Closed
bjornbytes
force-pushed
the
mutable-materials
branch
5 times, most recently
from
August 16, 2026 00:52
478f72e to
792bc87
Compare
bjornbytes
force-pushed
the
mutable-materials
branch
from
August 21, 2026 20:20
792bc87 to
7ce0fb2
Compare
bjornbytes
force-pushed
the
mutable-materials
branch
from
August 28, 2026 21:25
7ce0fb2 to
7a51c66
Compare
bjornbytes
force-pushed
the
mutable-materials
branch
from
August 28, 2026 21:36
7a51c66 to
12cb8a9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the following:
Material, so properties can be changed after they're created:Material:get/setColorMaterial:get/setGlowMaterial:get/setQuadMaterial:get/setMetalnessMaterial:get/setRoughnessMaterial:get/setClearcoatMaterial:get/setClearcoatRoughnessMaterial:get/setOcclusionStrengthMaterial:get/setNormalScaleMaterial:get/setAlphaCutoffMaterial:is/setDoubleSidedMaterial:get/setTexturedoubleSidedmaterial property.Model:setMaterialto replace the material in one of the Model's material slots.Pass:setMaterial.newModel(..., { materials = false })now sets all of the material slots to nil instead of removing material slots completely (shouldn't really have any behavior change, just a cleaner design).lovr.graphics.newMaterialcan take aTextureor anImageto use for the color texture.