Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Fixed in 1.0.46+] Live shader not reloading

A topic by Daikon Games created Oct 10, 2020 Views: 296 Replies: 1
Viewing posts 1 to 2
(1 edit)

Hi there, I've got an issue with shader reloading. I've bought the shader_replace_simple extension and imported it into my project, and I've got GMLive running. I was having trouble getting this working in my main project so I've set it all up in a simple test project.

In a create event I've got 

shader_set_live(shd_test, true);

And then in the Draw event I have

if (live_call()) return live_result;
shader_set(shd_test);
draw_sprite(spr_bg, 0, 100, 100);
shader_reset();

When I run the project and GMLive I can see the output of GMLive claiming  "updated shd_test" whenever I make changes and save the shader code, however the changes don't actually seem to be reloading in the game. Nothing happens at all.

I'm using GMS 2.3.0, latest version of GMLive and shader_replace_simple. Am I missing something about the setup or is this a bug?

Developer(+1)

I can confirm that shader reloading doesn't seem to work in 2.3 but I don't know why as of yet — I assume that something changed about how the shader compiler works. I'll need to investigate.