Create Tesla gun in Godot using simple shaders | Dicode
HTML-код
- Опубликовано: 2 авг 2024
- hello everyone,
I am here again with another visual effect tutorial in Godot
this time i have made a really cool tesla gun that fires lightning.
It is very similar to creating a Laser because the main mechanics is almost the same in both the cases. I have used the line2D node to create the main lightning and then applied a simple shader code in it.
and this lightning is going to be fully interactable with other object as well and the collision is checked by the Raycast2D node.
I will say that it look great because of the Kenny image pack.
you can download the image pack from here:
godotengine.org/asset-library...
I hope this video helps you in your project or if you have learnt something new from this.
don't forget to like and subscribe to this channel
and I will see you guys in the next one :)
TimeStamp:
(0:00) - final result
(0:13) - images required
(0:28) - main lightning
(1:47) - main lightning shader
(3:36) - end spark
(4:03) - end spark shader
(4:41) - positioning everything
(5:00) - lighting script
(6:15) - adding color
(6:35) - adding to gun
OK, you earned a sub. Godot community is something special and you're definitely doing your part. Keep it up.
Shockingly simple for such an amazingly kool effect..
Thats some quality content right here
This is so fun and practical. Great work!
your vids are great! keep it up man
You are doing a great work
Thank you very much
Thanks and welcome :)
Cool video man!
If you add the reflection mecanism After collision with the wall it would be awesome
very nice tutorials :)
Thanks :)
You are awesome. Subscribed
Thanks 😊
I love it
cool trick
Neat
Tyyyyy
Tq so much......
Welcome 😊
Can u please explain how raw colour work....????
Raw mode is used to add extra (over brighten the image) colors to image
. When you select color from color picker it is only in range of 0 to 1. But in raw you can go from 0 to 255. Also it gave move control on handling specific color channel.
my laser is really short, how can i fix it?
increase the cast to variable of your Ray2D to a higher value, something like 1000 on x axis
Indian accent !!!
Right 👍
@@dicode1q Me too 🤘
My spark stuck when the time frequency is over 4.0 🥲. My pc can only run Godot GLES 2.0