一些寫 Shader 時有用的速查資料
關於 Matrix
https://www.tutorialspoint.com/computer_graphics/3d_transformation.htm
https://upload.wikimedia.org/wikipedia/commons/2/2c/2D_affine_transformation_matrix.svg
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/
![](https://www.clonefactor.com/wordpress/wp-content/uploads/2021/07/MaterialPropertyDrawer.jpg)
關於 pragma target / pragma require 的設定需求
https://docs.unity3d.com/2019.3/Documentation/Manual/SL-ShaderCompileTargets.html
OpenGL 跟 DirectX 的坐標分別.
![](https://www.clonefactor.com/wordpress/wp-content/uploads/2021/07/DifferentBetweenClipSpace.png)
Multi Compile
https://docs.unity3d.com/Manual/SL-MultipleProgramVariants.html