Unity Shader Graph #3

a-a·2024년 5월 3일

UnityShader

목록 보기
4/6

How To Use All 200+ nodes in Unity Shader Graph
해당 게시글은 노드의 자세한 내용을 다루지 않습니다.
어떤 노드가 어떤 형태의 반환 값을 가지는지 간단한 예제로 정리했습니다.


주제

상단의 유튜브 영상에서 소개하는 쉐이더 노드를 정리해보겠습니다.
공부 및 정리 방법은 아래의 순서를 따릅니다.
1. 시간 날 때마다 하나하나 활용처, 활용 방법을 정리한다.
2. (1)번을 진행하면서 모르는 수학 지식이나 물리 지식도 공부하여 정리한다. (별도의 페이지에서)
3. (2)번의 결과물을 해당 노드에 링크한다.


기본적인 지식과 팁

  1. Preview노드를 활용하면 각 노드들의 출력 값을 쉽게 테스트 해볼 수 있다.
  2. 아래 사진은 URP와 HDRP 환경 차이에 따른 World View의 차이를 나타낸 이미지이다.

정리

Input/Basic Nodes

Color Node

Float Node

하나의 float 값을 갖는 노드
따로 정리하지 않았지만, Interger, Boolean 노드도 있다.

Vector2 Node

두 개의 float 값을 갖는 노드. RG값, UV, XY로 활용 가능하다.

vector3 Node

세 개의 float 값을 갖는 노드. RGB, UVW, XYZ로 활용 가능하다.

Slider Node

Time Node

Constant Node


Texture Nodes

Sample Texture 2D Node

가장 많이 사용되고 중요한 노드 중 하나이다.
세 개의 인풋을 받는다.
1. Texure2D
2. UV
3. sampler(SS)
Type은 Default와 Normal로 나뉜다. Normal은 텍스처에 sample normal map을 사용할 수 있다.
out은 각각의 RGBA 얻을 수 있다.

Sample Texture 2D Array Node

Sample Texture LOD Node

Sample Texture 3D Node

Sample Texture Cube Node

Sample Reflected Cubemap Node

Sample Virtual Texture Node

Sampler State Node

Texture 2D Asset Node

쉐이더 내에서 항상 같은 텍스처를 사용하는 경우 유용하다. 머터리얼에서 수정을 할 필요가 없는 경우 사용.

Texture 2D Array Asset Node

Texture 3D Asset Node

Cubemap Asset Node

Texel Size Node

텍스처 자체를 인풋으로 받고, 해당 텍스처의 Width, Height를 분리해서 얻을 수 있다.


Scene Nodes

Screen Node

Scene Color Node

Scene Depth Node

Camera Node

URP 환경에서만 지원됨.

Fog Node

Object Node


Light Nodes

Ambient Node

Reflection Probe Node

Baked Gl Node


Matrix Nodes

Matrix 2x2 Node

Matrix 3x3 Node

Matrix 4x4 Node

Transformation Matrix Node


Geometry Nodes

Position Node

Screen Position Node

UV Node

Vertex Color Node

View Direction Node

Normal Vector Node

Tangent Vector Node

Bitangent Vector Node


Gradient Nodes

Gradient Node

Sample Gradien Node

Blackbody Node


PBR Nodes

Dielectric Specular Node

Metal Reflectance Node


HDRP Nodes

Diffusion Profile Node

Exposure Node

HD Scene Color Node


Mesh Deformation Nodes

Compute Deformation Node

Linear Blend Skinning Node


Channel Nodes

Split Node

Swizzle Node

Flip Node

Combine Node


UV Nodes

Tiling And Offset Node

Rotate Node

Spherize Node

Twirl Node

Radial Shear Node

Triplanar Node

Polar Coordinates Node

Flipbook Node

Parallax Mapping Node


Math Nodes / Basic

Add Node

Subtract Node

Multiply Node

Divide Node

Pow Node


Math Nodes / Interpolation

Lerp Node

T 입력을 사용하여 A 입력과 B 입력 사이를 선형으로 보간한 결과를 반환합니다. T 입력의 값은 0-1 범위로 고정됩니다.

Inverse Lerp Node

Smoothstep Node


Math Nodes / Range

Clamp Node

Saturate Node

Minimum Node

Maximum Node

OneMinus Node

Remap Node

Random Range Node

Fraction Node

In 입력의 소수점 숫자를 반환합니다. 0보다 크거나 같고 1보다 작습니다.


Math Nodes / Round

Floor Node

Ceiling Node

Sign Node

Step Node

Truncate Node


Math Nodes / Wave

Noise Sine Wave Node

Triangle Wave Node

Square Wave Node

Sawtooth Wave Node


Math Nodes / Trigonometry

Sine Node

Cosine Node

Tangent Node

Arcsine Node

Arccosine Node

Arctangent Node

Arctangent2 Node

Degrees To Radians Node

Radians To Degrees Node

Hyperbolic Sine Node

Hyperbolic Cosine Node

Hyperbolic Tangent Node


Math Nodes / Vector

Distance Node

Dot Product Node

Cross Product Node

Transform Node

Fresnel Effect Node

Reflection Node

Rotate About Axis Node

Sphere Mask Node


Math Nodes / Derivative

DDX Node

DDY Node

DDXY Node


Math Nodes / Matrix

Matrix Construction Node

Matrix Split Node

Matrix Determinant Node

Matrix Transpose Node


Math Nodes / Advanced

Absolute Node

Length Node

Modulo Node

Negate Node

Normalize Node

Posterize Node

Posterize는 부드러운 값을 포스터처럼 단께를 나누어서 반환해 줍니다.
부드러운 값을 단순화 시켜준다고 생각하면 됩니다.

Reciprocal Node

Reciprocal Square Root Node

Exponential Node

Log Node


Artistic Nodes

Blend Node

Dither Node

Color Mask

Channel Mask

Hue Node

Saturation Node

Contrast Node

White Balance Node

Replace Color Node

Channel Mixer Node


Artistic Nodes / Normal

Normal Unpack Node

Normal Strength Node

Normal From Texture Node

Normal Blend Node

Normal Reconstruct Z Node


Artistic Nodes / Utility

Colorspace Conversion


Procedural Nodes

Checkerboard Node


Procedural Nodes / Noise

Simple Noise Node

Gradient Noise Node

voronoi Node


Procedural Nodes / Shapes

Rectangle Node

Width 및 Height 입력에서 지정한 크기의 UV 입력을 기반으로 직사각형 셰이프를 생성합니다. 이 노드는 프래그먼트 셰이더 단계에서만 사용할 수 있습니다.

Rounded Rectangle Node

Ellipse Node

Polygon Node

Rounded Polygon Node


Utility Nodes

Preview Node

Boolean Node

SubGraph Node

Custom Fuction Node


Logic Nodes

And Node

Or Node

Not Node

Nand Node

All Node

Any Node

Comparison Node

Branch Node

Is NaN Node

Is Infinite Node

Is Front Face Node

profile
"게임 개발자가 되고 싶어요."를 이뤄버린 주니어 0년차

0개의 댓글