Тёмный

Scratcher effect shader - Learning shaders in Godot episode 2 

MrElipteach
Подписаться 10 тыс.
Просмотров 1,1 тыс.
50% 1

In this second episode on my learning shaders series, I'm showing you how I made a scratcher shader inspired by 8pool.
🎓 Learn how to make JUICY games 👇
www.udemy.com/course/learn-ho...
Sources on GitHub
github.com/MrEliptik/godot_ex...
- Intro & outro music
Jazzhead - VOiD1 Gaming (www.void1gaming.com)
👤 SOCIALS
~~~~~~~~~~~~
💰 One time donation: ko-fi.com/mreliptik
💰 Support me on Patreon: / mreliptik
🟣 Join us on Discord: / discord
🔴 Twitch: / mreliptik
🐤 Twitter: / mreliptik
🎥 TikTok: / mreliptik
🖼️ Instagram: / mreliptik
🔗All links: bento.me/mreliptik
CHAPTERS
~~~~~~~~~~~~
00:00 - Intro with results
00:24 - Thinking about how to make it
01:59 - Nodes setup
03:08 - Drawing on textures
04:51 - Creating the shader
06:30 - Feeding the texture to the shader
06:55 - Result
07:11 - CPU comparison
08:53 - CPU solution results
09:42 - Outro

Игры

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@beedeo3664
@beedeo3664 Год назад
Hi, I loved your video tutorial. Step by step and very clear. I am new to godot and am trying to make a scratch off. I followed your example and it worked for me but I have a question: How do I know the percentage of the scratched surface? I would like that when 50% of the surface is scratched, the rest of the surface is automatically scratched. Thank you very much! ❤
@mrelipteach
@mrelipteach Год назад
Thanks, glad you liked it. Honestly I'm not completely sure. The most obvious way to me is to count how many pixels have been changed in the mask texture (the black and white texture on which we draw), but I'm afraid it's going to be quite slow because you have to do it in GDScript.
@melpeslier
@melpeslier 8 месяцев назад
I think we can just use a transparent drawing color ?
@RenatoMeyer
@RenatoMeyer 9 месяцев назад
Hey! Awesome tutorial! Can this be aplied to a moving sprite? Like, if I have the sprite of a cow, could I erase the head and then move the cow with a missing head around?
@mrelipteach
@mrelipteach 9 месяцев назад
You have to make a shader on the texture and not a screen shader. So yes it can be done with some tweaking
@RenatoMeyer
@RenatoMeyer 9 месяцев назад
@@mrelipteach That's cool! Would you say it's similar to what you do here and I could use this tutorial? Or do you think it's too different
Далее
Stop "learning" gamedev right now
17:00
Просмотров 7 тыс.
10+2 AWESOME ADDONS for GODOT 4
8:36
Просмотров 128 тыс.
Despicable Me Fart Blaster
00:51
Просмотров 6 млн
Clowns abuse children#Short #Officer Rabbit #angel
00:51
Make your games JUICIER with these 5 rules
10:45
Просмотров 7 тыс.
Godot Static Typing - Is It REALLY Faster?
3:35
Просмотров 6 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 326 тыс.
Introduction to shaders: Learn the basics!
34:50
Просмотров 297 тыс.
An introduction to Shader Art Coding
22:40
Просмотров 937 тыс.
I recreated Balatro's effects in Godot
8:04
Просмотров 25 тыс.
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 239 тыс.
10 AWESOME ADDONS for GODOT 4
5:42
Просмотров 60 тыс.