built-in SpecularType of Unity

built-in SpecularType of Unity

1、声明变量。

  

  

  注意并没有在Shader中声明_SpecColor,因为Lighting.cginc中已经帮我们声明。

2、声明使用BlinnPhong光照模型。

  

3、最后将_SpecPower和Gloss给赋值。

  

  SpecPower是指光泽度,小的值带来平滑的光斑,大的值带来小而亮的光斑。Gloss是亮度(光强),值越大,光斑越亮。

4、镜面反射效果如下。

  

时间: 2024-08-07 04:33:27

built-in SpecularType of Unity的相关文章

Unity for Windows: III–Publishing your unity game to Windows Phone Store

原地址:http://digitalerr0r.wordpress.com/2013/08/27/unity-for-windows-iiipublishing-to-windows-phone-store/ In Part II we covered how you can publish your game to Windows Store, so it runs on Windows 8 driven devices. Today we are going to export our ga

Unity for Windows: II – Publishing Unity games to Windows Store

原地址:http://digitalerr0r.wordpress.com/2013/08/27/unity-for-windows-ii-publishing-to-windows-8/ Windows 8 is a new OS with a Windows Store where you can distribute your apps to millions of users world wide, for both PC, laptops and tablets. You can se

Creating a Unity Game for Windows 8

原地址:http://www.davebost.com/2013/08/30/creating-a-unity-game-for-windows-8 The recent release of Unity 4.2 brings with it full-support for deploying Unity games to both Windows 8 and Windows Phone. Unity 4.2 is a powerful game development tool that c

Unity官方文档之“图形性能优化-帧调试器”的翻译

Frame Debugger 帧调试器 The Frame Debugger lets you freeze playback for a running game on a particular frame and view the individual draw calls that are used to render that frame. As well as listing the drawcalls, the debugger also lets you step through

Unity 依赖注入

关于Ioc的框架有很多,比如astle Windsor.Unity.Spring.NET.StructureMap,我们这边使用微软提供的Unity做示例,你可以使用Nuget添加Unity,也可以引用Microsoft.Practices.Unity.dll和Microsoft.Practices.Unity.Configuration.dll,下面我们就一步一步的学习下Unity依赖注入的详细使用.如果不明白什么是控制反转和依赖注入,请参考控制反转和依赖注入模式 下面通过一个示例来讲解Uni

unity与手机相关吧

转载请注明出处:http://blog.csdn.net/u010019717 更全的内容请看我的游戏蛮牛地址:http://www.unitymanual.com/space-uid-18602.html ?? Windows Phone Application and Store Image,Icon Sizes  Application Image Sizes FlipCycleTileLarge -> 691×336 FlipCycleTileMedium -> 336×336 Fli

【中英对照】【EntLib6】【Unity】实验1:使用一个Unity容器

Lab 1: Using a Unity Container 实验1:使用一个Unity容器 Estimated time to complete this lab: 15 minutes 估计完成时间:15分钟 Introduction 介绍 In this lab, you will practice using a Unity container to create application objects and wire them together. You will update a

Unity Application

整理的一些东西和上网查的一些,以供以后查阅,未完待续 public static NetworkReachability internetReachability { get; } //Returns the type of Internet reachability currently possible on the device. //返回目前网络可达在设备上的互联网类型 NotReachable  网络不可达 ReachableViaCarrierDataNetwork  网络通过运营商数

【Unity游戏开发】接入UWA_GOT的iOS版SDK以后无法正常出包

一.正文 问: RT,最近有看到UWA_GOT工具新增了iOS版本的支持,于是下载了最新的工具包进行了接入测试.是按照文档直接将UWA_GOTv2.0.1_iOS.unitypackage导入进了Unity项目内,并且做了配置.但是发现添加了UWA_GOT插件以后iOS上不能正常出包,总是卡在xcodebuild archive这一步:报错信息如下: ** ARCHIVE FAILED ** The following build commands failed: Check dependenc