How To Create A Colour Swapping Shader In Unity (Shader Graph Tutorial)

preview_player
Показать описание
In this video I'm breaking down the shader used in my previous video, showing how it works and how to expand upon it. This project might go somewhere, might not. Who knows at this point.

Music by @OldMrJake
Рекомендации по теме
Комментарии
Автор

Very cool idea, I like your direction, and the voxel theme in general, keep up the good work, like and subscribe. 👍👍👍

nf
Автор

Great tutorial! I haven't tried shaders before but my game has lots of color-swapping (flowers and trees and whatnot), this is exactly what I have been looking for. Presumably better performance than hundreds of multi-material meshes trading out mats lol

WornTraveler
Автор

Hey guys, just leaving a tip here, because i suffered a little with this... When the camera was far from my object, some white cubes were displayed in. I used some AI to understand what was happening and discovered that was related to the LOD in the texture after apply the shader. I did a small change, using the node "Sample Texture 2D LOD" instead of "Sample Texture 2D" and put the LOD value in 0.

My game camera is a little distant from the main object, thats why i needed to use this.

I hope this can help someone!

gbaierski
Автор

I need the alpha channel, how would I go about "splitting this off" as you put it?

BreakGlassForMemes
visit shbcf.ru