Unity3D脚本中文系列教程(十五)
来源:互联网 发布:客户维护软件 编辑:程序博客网 时间:2024/05/07 02:59
◆
◆
◆
// 强制光源为顶点光源
LightShadows
值
◆
描述:投射“hard”阴影(没有阴影过滤)
//设置光源为投射硬阴影
Light.shadows=LightShadows.Hard;
参见:light component
◆LightShadows.None
描述:不投射阴影(默认)
//设置光源为不投射阴影
Light.shadows=lightshadows.None;
参见:light component
描述:投射Soft阴影(带有4倍PCF过滤)
//设置光源为投射4倍过滤的软阴影阴影
Light.shadows=lightshadows. Soft;
参见:light component
值
◆LightType.Directional
描述:这个光源是一个直射光源。
参见:Light.type, light component
//制作一个直射光源
Light.type=LightType.Directional;
◆LightType.Point
描述:这个光源是一个点光源。
参见:Light.type,light component
//制作一个直射光源
Light.type=LightType.Point;
◆LightType.Spot
描述:这个光源是一个透射光源。
参见:Light.type, light component
//制作一个透射光源
Light.type=LightType.Spot;
值
NetworkConnectionError
值
值
◆ ParticleRenderMode.Billboard
描述:作为面向玩家的公告板渲染例子(默认)
◆ ParticleRenderMode.HorizentalBillboard
描述:作为公告板渲染粒子,总是沿着Y轴
◆ ParticleRenderMode.SortedBillboard
描述:从后向前排序并作为公告板渲染。
这个使用混合例子着色器看起来更好,但是因为排序边得较慢
◆ ParticleRenderMode.Streteh
描述:在运动方向拉伸粒子
◆ ParticleRenderMode.VerticalBillboard
描述:作为公告板渲染粒子,总是面向玩家,但是不沿着X轴旋转
PhysicMaterialCombine
参见:PhysicMaterial.InctionCombine,PhysicMaterial.boticeCombine
值
Average
Multiply
Minimum
Maximum