https://learn.unity.com/project/make-a-flag-move-with-shadergraph

Untitled

URP 简介

https://learn.unity.com/tutorial/introduction-to-urp?uv=2019.4&projectId=5d0a4b59edbc2a001fe52445#5fc3f3ecedbc2a55bbadc214

ShaderGraph: Vertex Position

The Position node provides access to the Mesh vertex or fragment’s position. It controls how a Shader behaves in a Scene and in what space it renders. For example, if you change the position to View, the shader will always render from the view direction of the camera. The output is the coordinate space that can be determined by the Space dropdown. This node has a single output and one parameter.

Parameter:

Sample Gradient

The Sample Gradient has two inputs and a single output. This node takes Gradient and Time as its inputs. The Time variable is used to move through the Gradient from one end to the other. You can use this to animate through the Gradient or pick a specific position, or color, within the Gradient.

挑战:将节点应用于旗帜

https://learn.unity.com/tutorial/apply-nodes-to-the-flag?uv=2019.4&projectId=5d0a4b59edbc2a001fe52445#

Untitled

Untitled

Untitled

Untitled

Untitled