Skip to content

refactor(flame_3d)!: Simplify shader structure and remove no longer ne…#3880

Merged
wolfenrain merged 2 commits intomainfrom
refactor(flame_3d)--Simplify-shader-structure-and-remove-no-longer-needed-uniform-classes
Mar 24, 2026
Merged

refactor(flame_3d)!: Simplify shader structure and remove no longer ne…#3880
wolfenrain merged 2 commits intomainfrom
refactor(flame_3d)--Simplify-shader-structure-and-remove-no-longer-needed-uniform-classes

Conversation

@wolfenrain
Copy link
Copy Markdown
Contributor

…eded uniform classes

Description

Made the Shader the actual source of truth for it's own Resource and have it manage it's own data.

Now a Shader can be re-computed like any resource and we can even support refreshed Shader assets in debug mode (not hooked up in any way, just possible)

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

Comment thread packages/flame_3d/lib/src/resources/shader/fragment_shader.dart
Comment thread packages/flame_3d/lib/src/resources/material/material.dart
Comment thread packages/flame_3d/lib/src/resources/light/lighting_info.dart Outdated
Comment thread packages/flame_3d/lib/src/resources/material/spatial_material.dart Outdated
Comment thread packages/flame_3d/lib/src/resources/shader/uniform_instance.dart
Copy link
Copy Markdown
Member

@luanpotter luanpotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@luanpotter luanpotter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wolfenrain wolfenrain merged commit 1d799fd into main Mar 24, 2026
6 checks passed
@wolfenrain wolfenrain deleted the refactor(flame_3d)--Simplify-shader-structure-and-remove-no-longer-needed-uniform-classes branch March 24, 2026 20:23
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.

2 participants