- Home /
Question by
BloodMarked · Feb 16, 2020 at 09:34 AM ·
scripting problemshadershadersshader programmingcompute shader
perform action on shader compilation/update
i am using a compute shader to generate a terrain (height map), then generate and stream a mesh into the live game.
in order to iterate faster, i would like to automatically restart the terrain generator, as soon as i change / update the shader.
is there a callback / way to hook up to the shader recompile? or a shader version property of some sort, that i can check for changes?
ideally, i would like to get to a setup where the shader recompiles and i can use it as soon as i save the shader (not wait until i switch back to the unity editor window). that would be the best case and would help a lot with iteration speed
Comment