Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support to multiple lights using the uniform array [flame3d][WIP]#3284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
luanpotter wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromluan.multi-lights

Conversation

@luanpotter
Copy link
Member

Description

Add support to multiple lights using the uniform array

Checklist

  • I have followed theContributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation indocs and added dartdoc comments with///.
  • I have updated/added relevant examples inexamples ordocs.

Breaking Change?

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

CharlVS reacted with rocket emoji
@luanpotterluanpotterforce-pushed theluan.shader-arrays branch 2 times, most recently from8158d30 to9132ee8CompareSeptember 13, 2024 19:35
luanpotter added a commit that referenced this pull requestSep 21, 2024
…_3d] (#3282)Refactor shader uniform binding to support shader arrays.This also decouples the whole shader and uniform byte handling code(that we should definitely test) from the flutter_gpu primitives thatare impossible to mock (base native classes).This adds tests that ensure the arrays are bound as they should -however the underlying flutter_gpu code does not seem to work. See [thisPR](#3284) for a test of usingthis to support an arbitrary number of lights.Either way, we can merge this as is as this refactors the underlyingstructure to support arrays when ready, and make it more testable aswell.
Base automatically changed fromluan.shader-arrays toflame_3dSeptember 21, 2024 00:18
luanpotter added a commit that referenced this pull requestOct 15, 2024
…_3d] (#3282)Refactor shader uniform binding to support shader arrays.This also decouples the whole shader and uniform byte handling code(that we should definitely test) from the flutter_gpu primitives thatare impossible to mock (base native classes).This adds tests that ensure the arrays are bound as they should -however the underlying flutter_gpu code does not seem to work. See [thisPR](#3284) for a test of usingthis to support an arbitrary number of lights.Either way, we can merge this as is as this refactors the underlyingstructure to support arrays when ready, and make it more testable aswell.
luanpotter added a commit that referenced this pull requestDec 11, 2024
…_3d] (#3282)Refactor shader uniform binding to support shader arrays.This also decouples the whole shader and uniform byte handling code(that we should definitely test) from the flutter_gpu primitives thatare impossible to mock (base native classes).This adds tests that ensure the arrays are bound as they should -however the underlying flutter_gpu code does not seem to work. See [thisPR](#3284) for a test of usingthis to support an arbitrary number of lights.Either way, we can merge this as is as this refactors the underlyingstructure to support arrays when ready, and make it more testable aswell.
Base automatically changed fromflame_3d tomainDecember 11, 2024 19:26
luanpotter added a commit that referenced this pull requestDec 11, 2024
…_3d] (#3282)Refactor shader uniform binding to support shader arrays.This also decouples the whole shader and uniform byte handling code(that we should definitely test) from the flutter_gpu primitives thatare impossible to mock (base native classes).This adds tests that ensure the arrays are bound as they should -however the underlying flutter_gpu code does not seem to work. See [thisPR](#3284) for a test of usingthis to support an arbitrary number of lights.Either way, we can merge this as is as this refactors the underlyingstructure to support arrays when ready, and make it more testable aswell.
@luanpotter
Copy link
MemberAuthor

@wolfenrain would love some help with getting this working when you have some time. I've tried so many different approaches and the issue truly eludes me.

wolfenrain reacted with thumbs up emoji

@wolfenrain
Copy link
Contributor

@wolfenrain would love some help with getting this working when you have some time. I've tried so many different approaches and the issue truly eludes me.

I'll try and have a jab at it 🫡

luanpotter reacted with heart emoji

nickf2k pushed a commit to nickf2k/flame that referenced this pull requestNov 16, 2025
…_3d] (flame-engine#3282)Refactor shader uniform binding to support shader arrays.This also decouples the whole shader and uniform byte handling code(that we should definitely test) from the flutter_gpu primitives thatare impossible to mock (base native classes).This adds tests that ensure the arrays are bound as they should -however the underlying flutter_gpu code does not seem to work. See [thisPR](flame-engine#3284) for a test of usingthis to support an arbitrary number of lights.Either way, we can merge this as is as this refactors the underlyingstructure to support arrays when ready, and make it more testable aswell.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@luanpotter@wolfenrain

[8]ページ先頭

©2009-2025 Movatter.jp