#Adding values in runtime causes jitter
1 messages · Page 1 of 1 (latest)
one thing im thinking i could do is store the value of the rotation in code and just increment it there
but im wondering if there's a way i can just fix this in code
Here I think you're multiplying the Time node by your property?
You can rather make custom time property and to change the speed multiply how much you increment it per frame
If you mean to ask if you can fix this in a shader without more code, I don't think that's possible
Yeah, it's impossible to adjust the rotation speed smoothly if you aren't remembering the current rotation
Your shader doesn't remember the rotation from frame to frame
It just multiplies the current time by _RotateSpeed
I've solved this by creating my own time property, as Spazi suggested
so rather than changing the multiplier, you change how quickly time advances in the first place
yeah, this is what I ended up doing in the end. I assumed that shaders didn't really save a "state" per se so I couldn't mess with that, so I just store a custom time value in a script and modify the time of thag