using UnityEngine; using System.Collections; using System.Collections.Generic; public struct SegmentPoint { public Vector3 normal; public Vector3 pos; }; public class DrawMesh_Plane : MonoBehaviour { MeshFilter meshFilter; /// <summary> /// 面片
Unity包括超过40种内置的shader. 标准着色器家族 Normal Shader Family 这些着色器都是Unity基本的着色器.适用于大多数的不透明物体,如果想要物体有透明.发光效果等,它们并不适用. Vertex Lit 顶点光照着色器 Assets needed 资源需要: One Base texture, no alpha channel required 一个基本纹理,无alpha通道 Diffuse 漫反射着色器 Assets needed 资源需要: One Bas