Points and vectors that Shader in Unity needs to know


Preface

Shader in Unity understands the points and vectors used


1. The difference between points and vectors

Insert image description here


2. Vector addition and subtraction

1. Vector addition

Insert image description here
Please add image description

2. Vector subtraction (vector subtraction can be converted into vector addition)

Insert image description here

Please add image description


3. Module of vector

Insert image description here

Insert image description here


4. ScalarInsert image description here

1. Multiplication of vectors and scalars

Insert image description here

Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/qq_51603875/article/details/133235086