noone Posted April 29, 2019 Share Posted April 29, 2019 How can i recreate this soft gradient color and animate it? Quote Link to comment Share on other sites More sharing options...
jonforum Posted April 29, 2019 Share Posted April 29, 2019 https://pixijs.io/examples/#/textures/gradient-resource.js Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 1, 2019 Share Posted May 1, 2019 If you know the function, you can write shader that emulates it and put it in Filter and Mesh material like in pixi examples. As for where to get math - I really don't know Look in shadertoy.com , maybe there's something like that Quote Link to comment Share on other sites More sharing options...
Exca Posted May 2, 2019 Share Posted May 2, 2019 You can do that with vertex shader by giving each vertice a color and then gpu interpolates between those points. Or you can do the calculation in fragment shader to get more refined look. Here's an example how it could be done with fragment shader https://www.shadertoy.com/view/tls3zS For info on how the color palette is done read this article http://www.iquilezles.org/www/articles/palettes/palettes.htm kuuuurija and jonforum 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.