Repository navigation
feat!: Add alpha support on materials - #4257
Merged
Merged
Conversation
alpha support on materialsalpha support on materials
alpha support on materialsalpha support on materials
alpha support on materialsalpha support on materials
spydon
approved these changes
Nov 27, 2026
spydon
left a comment
Member
There was a problem hiding this comment.
LGTM, one super minor nit.
Also all the var variables look pretty verbose to me, but I think we might have added a rule for that for public vars.
| } | ||
|
|
||
| /// How a [Material]'s alpha channel is interpreted by the renderer. | ||
| enum Transparency() { |
Member
There was a problem hiding this comment.
Suggested change
| enum Transparency() { | |
| enum Transparency { |
No need to declare the empty constructor
Contributor
Author
There was a problem hiding this comment.
😂 honestly why didnt any kind of lint rule flag that!
Contributor
Author
wolfenrain
force-pushed
the
feat/flame_3d-alpha-scissor
branch
from
November 27, 2026 19:51
9314f83 to
7c6cb52
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.

Description
Adding alpha scissoring to materials.
Checklist
docsand added dartdoc comments with///.examplesordocs.Breaking Change?
By default we now render opaque, before this every draw was using alpha blending. So an unlit material with a transparent texture will now draw opaque until you enable transparency, decided to do this as it should be an opt-in as it has a cost (minor but good defaults is better than slow defualts)
Related Issues