Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decal animation set frame feature #204

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

linsonder6
Copy link

@linsonder6 linsonder6 commented Aug 14, 2024

just like poiyomi, you can set the frame by changing CurrentFrame in decal animation

Unity_WfpV8hfrRz

-1 for the anim will move normally, otherwise it will stop at the frame you set

also, all shader files need to change
(or just change when u gonna use the feature)
from

[lilDecalSub]   _Main3rdTexDecalSubParam    ("sDecalSubParams", Vector) = (1,1,0,1)

to

[lilDecalSub]   _Main3rdTexDecalSubParam    ("sDecalSubParams", Vector) = (1,1,0,-1)

Added set Currnet Frame Getloc
Added sCurrentFrame translations
Added currentframe drawer
Changed lilCalcAtlasAnimation() to support setting frame
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.

1 participant