[100 cases of Unity actual combat] The circular mask of the user's avatar uses the Shader without the Mask component

Table of contents

1. Create a material

2. Create Shader file and write Shader code

3. Image material settings


Source code: https://download.csdn.net/download/qq_37310110/88196529

Foreword: When we use Unity's built-in component Mask, there will be burrs that are difficult to deal with. Here we use the shader shader to process without burrs.

Guess you like

Origin blog.csdn.net/qq_37310110/article/details/132192504