Unity URP Interactive Snow Compute Shader Tutorial

preview_player
Показать описание
In this video, I show how to use a compute shader to create an interactive snow material.

Github link for project:

#unity3d #gamedev #tutorial #shaders #unityshader
Рекомендации по теме
Комментарии
Автор

You are a bloody life-saver with this one, you have no idea... All the other interactive snow tutorials out there that I could find for Unity were 3-4 years old and I for the life of me could not get any of them to work in Unity 6, and then in comes the cavalry to save the day.

But seriously, this was a huge help and is an awesome point to keep building onto. You have saved me from a purgatory of endless trial and error with out of date videos.

Azrael_Bathory
Автор

Thank you very much!! Underrated dev, tutorial, masterpiece.

cyber
Автор

You can use "ctrl+r" twice on the class name to rename the class and the file!
There's also vector2 to 4 nodes that you can use instead of the combine node
It would be cool to also take the previous position into account as well, then draw lines from previous to new rather than just drawing dots :>

This couldn't have come at a better time as I've been looking for a snow tutorial!

CYXNIGHT
Автор

This is so great and would fit my project so well! But i do have slight terrain... i haven't been able to figure out any options for this :(

SarahAndresen
Автор

always like snow shaders!!.. just came across your channel and Subbed !. I have 2 requests.. 1. a 32 Max colour shader for the screen like the Amiga 500 days. and 2. a RGB shader that makes screen gray when values are at 0 and red when red value is at 1 etc. for a game you have to find the red green and blue to make the world full colour again.

random_precision_software
Автор

Hey, I'm having an issue where it says that it cannot assign get position because it is a method group. Do you know what the problem is?

YT_Football_Bot
Автор

It makes no sense.
I exported the plane the same way.
Yet it draws the dots like I'm walking on a much smaller plane. And scaling the plane makes no difference.
And if I make another plane with the same components with a .blend instead of just another export. Then the snowRT is empty.
And removing the original semi working plane didn't change anything. If I make a new plane with the SnowController and assign the SnowComputeShader, then the player's snowRT doesn't get created. Only if I bring back the original semi working plane.

edit: The issue with the other planes was the tag not being assigned. Somehow doing it your way with the subdivision modifier worked.
No idea why it didn't work by subdividing manually in the edit window. Picky as heck.
Not sure why but it doesn't fully work over the whole field. Some parts like edges and centre don't register. Seems the scale has a limit. Each has a circle as you coded and their limit don't extend with the scale. 7 stops at edges and 5 has a circle in the middle it can't paint.

magnusm
Автор

Great tutorial! Do you know how to modify the code so when the player jumps it doesn't draw a path?

AnnabellePries
Автор

I'm begging you to make a full screen comic shader tutorial

CarterHecht
Автор

I've been looking for a tutorial like this for a while. You've done amazing work on this!
Have you any idea how to fix the noise to object space while still keeping it tilable?
Currently if the camera moves the noise moves with it.

Jigglefrizz
Автор

Hey! is it possible to get this interactive snow onto quite a big terrain (mountain). i have made a mountain with the unity terrain tool and cant get this snow to work. i got it working like in the example with the plane but i don't know if its possible to put it into a terrain that has height. i am using unity 6

markusmalaska
Автор

Thank you! Do you think it would be easy to convert to HDRP?

cheatlab
Автор

I have a question!
How to have a much larger surface (like terrain) with this snow while maintaining high performance?
Love the idea of the video BTW Subed<3

cyber
Автор

Great Tutorial,but it can't work in Unity6

minkonon
visit shbcf.ru