Skip to content

Added time as a uniform property for final shader#2793

Closed
RealEdwardS wants to merge 0 commit intof3d-app:masterfrom
RealEdwardS:final-shader-improvements
Closed

Added time as a uniform property for final shader#2793
RealEdwardS wants to merge 0 commit intof3d-app:masterfrom
RealEdwardS:final-shader-improvements

Conversation

@RealEdwardS
Copy link

Describe your changes

Added time elapsed from the app start as a uniform property for final shader application.

time is stored as a double, however, there doesn't seem to be a SetUniform function for doubles (according to the docs - https://vtk.org/doc/nightly/html/classvtkUniforms.html), so I'm using SetUniformf.

Issue ticket number and link if any

#2257

Checklist for finalizing the PR

  • I have performed a self-review of my code
  • I have added tests for new features and bugfixes
  • I have added documentation for new features
  • If it is a modifying the libf3d API, I have updated bindings
  • If it is a modifying the .github/workflows/versions.json, I have updated docker_timestamp

Continuous integration

Please write a comment to run CI, eg: \ci fast.
See here for more info.

@RealEdwardS RealEdwardS marked this pull request as draft January 8, 2026 01:37
@RealEdwardS RealEdwardS marked this pull request as ready for review January 8, 2026 02:38
@Meakk
Copy link
Member

Meakk commented Jan 8, 2026

Nice straightforward implementation :)
You will have to add a simple test using time.

@mwestphal
Copy link
Member

Need any help moving forward @RealEdwardS ?

@RealEdwardS
Copy link
Author

Need any help moving forward @RealEdwardS ?

yes I do, sorry for not being active; i'll post a follow up on discord in a few days, but i'm still going to work on it.

@mwestphal
Copy link
Member

@RealEdwardS please do not merge with master, instead rebase on master.

@github-actions
Copy link

github-actions bot commented Mar 9, 2026

You are modifying versions.json, please update the docker timestamp as well, this will generate new docker images and caches needed for CI.

@mwestphal
Copy link
Member

Well, looks like it went wrong, do you need help with the rebase ? :)

@mwestphal
Copy link
Member

still wrong, let me know :)

@mwestphal
Copy link
Member

nope ^^

@RealEdwardS RealEdwardS force-pushed the final-shader-improvements branch from 904d8b4 to d76b176 Compare March 10, 2026 13:25
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.

4 participants