Thryrallo / ThryEditor

General Unity Shader Inspector/Editor with focus on vrchat
https://thryeditor.thryrallo.de/
MIT License
113 stars 18 forks source link

Gradient image changes every time it's opened from Texture Ramp shading. #104

Closed BluWizard10 closed 1 week ago

BluWizard10 commented 2 weeks ago

See Video link, courtesy of community member Yoko. https://i.gyazo.com/66f930855ae77120fd1e7fc9f4f443de.mp4

Thryrallo commented 1 week ago

Yes, this is intended behaviour. If the input ramp isn't known (the texture in the gradient slot, does not have a serialized gradient in the Thry/gradient file) then the gradient editor try to estimate the gradient from the texture. The user in this video did not do any edits to the gradient in the editor, so the editor did not save / overwrite his texture when closing the editor. So the preview of the estimate gradient get's discareded and the old texture get's shown.