D
D
Deathgar2017-09-25 19:51:44
Game development
Deathgar, 2017-09-25 19:51:44

Shaders that react to objects. How is this created?

Understanding shaders is very difficult, everything that is on the Internet is just the basics. Could you tell me where to find some information or video (preferably in Russian, preferably) that will show me how this happens.
I'm talking about shaders that interact with different objects, whether it's a bank, something like this ( https://www.assetstore.unity3d.com/en/#!/content/24707) or something like this ( https://www. assetstore.unity3d.com/en/#!/content/24707) , or I won’t show an example, but shields are energy shields, when it hits some place, a wave occurs that diverges through the shader. I hope I explained what I need clearly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2017-09-25
@Deathgar

Well, firstly - since you have links to the asset store - buy / download those shaders and disassemble them.
Secondly. I could be wrong here, but still. The shader itself does not interact with objects in any way. There is simply an opportunity to transfer some data from the code to the shader in runtime. Here, for example, at the moment of a hit, the coordinates of the collision are transferred to the shader, and it already draws waves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question