Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Deleting shaders

Author
Message
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 20th Oct 2017 23:13
Ok, so time for a super daft question.....how can you delete a loaded shader?

To put his into context, lets say I load shader A and apply it to object A. Then I load shader B and apply it to object B. All is good.

Now, I want to apply shader B to object A.....AGK seems to refuse to allow this?

I've delted the objects and created them again and loaded the shaders the other way round, and then assigned shader B to object A.....but it's still setting shader A to object A. It's like AppGameKit can;t load a shader over the top of a previously loaded shader and you can't delete it?

The thing is, it's planets in a system and I need to be able to change the sequence of loaded shaders.

Has anyone else found aything else like this?
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 21st Oct 2017 00:15
Maybe try setting the shader to the default (0) and then to the new shader. Just a guess
puzzler2018
User Banned
Posted: 21st Oct 2017 07:32
Same principle of what your trying to achieve

https://forum.thegamecreators.com/thread/220705

D
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 21st Oct 2017 10:31 Edited at: 21st Oct 2017 10:32
Ah, Paul says he is adding a delete shader command.
Westa
13
Years of Service
User Offline
Joined: 28th Oct 2011
Location:
Posted: 27th Nov 2017 00:00
Along with DeleteShader - are we also getting GetShaderExists() ?

Westa

Login to post a reply

Server time is: 2024-11-24 06:09:11
Your offset time is: 2024-11-24 06:09:11