bmahlbrand Posted October 27, 2018 Share Posted October 27, 2018 I've got procedural textures working, but I'd like to have it dynamic / animated (basically transparent quads, blahblah). I'm comfortable with the shaders and no issue with the folder set up for the config / fx file, but don't quite follow why my shader isn't updating - is this expected behavior? Any advice on the best way to proceed? I'm sure I can just roll a custom shader and make all this work, I'm just wondering if that's the way the functionality is intended to be achieved. i.e. are procedural textures only run at initialization? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 29, 2018 Share Posted October 29, 2018 Well this should work, see for instance the fire procedural: https://github.com/BabylonJS/Babylon.js/tree/master/proceduralTexturesLibrary/src/fire It is animated with a "time" variable. Perhaps you could offer a repro in the Playground to further help you? Quote Link to comment Share on other sites More sharing options...
bmahlbrand Posted October 30, 2018 Author Share Posted October 30, 2018 Thanks for the response, it actually boiled down to me not reading the docs closely enough re: the config.json to set the proper values for animate / refresh rate. Got it working! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted October 30, 2018 Share Posted October 30, 2018 Wonderful. Flagging as solved 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.