1
2
3
4
5
6
7 *{margin: 0;padding: 0;list-style: none;border :none}
8 #aside{width: 150px;position: absolute;left: 0;top: 150px;}
9 #aside img{width: 100%;}
1
Tag: Effects
Unity Shaders and Effects Cookbook (7-1) Access vertices in Surface Shader
In OpenGL, the support of vertex shader and fragment shader is needed for correct rendering. In vertex shader, each frame is for each object in the scene All vertices are processed once.
If y
Unity Shaders and Effects Cookbook (7-2) Surface Shader Implemented Porthot Animation
As mentioned in the previous section, in Surface Shader, adding vertex functions, we can get vertex data in the vertex function, such as vertex color, vertex coordinates, etc.
This section le
Unity Shaders and Effects Cookbook (1-1) Basic Surface Shaders (Surface Shader)
1. Create a basic surface shader
Create a folder in Assets and name it Materials. Create a Shader in Materials. Create another Material. Both are named BasicDiffuse.
Open BasicDiffuse.s