Refersh GLSL Shader

   1169   2   3
User Avatar
Member
6 posts
Joined: Dec. 2016
Offline
Hello,

I'm working on a GLSL viewport shader which I load trough the ogl_glsl_shader parameter from a .prog file. Is there a way so I can refresh the shader in the viewport when I change something in the code?

Using a VOP asset is not an option for me because I'm using python to generate the shader code and I guess I cant modify an assets frag code from python.
User Avatar
Member
253 posts
Joined: July 2013
Offline
Not sure, but at least for dev purposes I guess you could add a random string to the filename each time you generate an upodate, and use python to set the parm on whatever takes the shader to use the new file.
More code, less clicks.
User Avatar
Member
6 posts
Joined: Dec. 2016
Offline
That works! Thank you!
  • Quick Links