Unity3D中CG/GLSL shader与iPhone shader的区别
2012-10-11 22:46
375 查看
最重要的区别即CG/GLSL shader在Unity iphone中是不支持的。更多信息见:
file:///Applications/Unity%20iPhone/Unity%20iPhone.app/Contents/Documentation/Documentation/Manual/iphone-unsupported.html
据我所知,并不是ShaderLab Reference所有功能都能在iPhone中运行良好,不支持的功能列表如下:
1、Cubemaps
2、SeparateSpecular command
3、Three-argument texture combiner functions (except Lerp)
4、GrabPass
之所以Unity中的每个shader都能在iPhone上运行良好,是因为Unity中的Fallbacks预设机制。如果想要编写自己的shader,最好依据iPhone standard assets中的shader, 因为其中的shader做了简化与优化,运行更高效。
深入阅读:
http://www.unifycommunity.com/wiki/index.php?title=Shader_Archive#iPhone
补充学习:
Unity provides a language called "ShaderLab" which is similar to Nvidia's CgFX. You can use this to write custom shaders including vertex & fragment programs.
Read more about it in the Unity reference manual here: http://unity3d.com/support/documentation/Components/SL-Reference.html
A good way to start off is to have a look at the source code for Unity's built-in shaders, which you can download here:http://unity3d.com/download_unity/builtin_shaders.zip
Or check out the custom shaders that people have put up on the Unity Wiki, here:http://www.unifycommunity.com/wiki/index.php?title=Shaders
file:///Applications/Unity%20iPhone/Unity%20iPhone.app/Contents/Documentation/Documentation/Manual/iphone-unsupported.html
据我所知,并不是ShaderLab Reference所有功能都能在iPhone中运行良好,不支持的功能列表如下:
1、Cubemaps
2、SeparateSpecular command
3、Three-argument texture combiner functions (except Lerp)
4、GrabPass
之所以Unity中的每个shader都能在iPhone上运行良好,是因为Unity中的Fallbacks预设机制。如果想要编写自己的shader,最好依据iPhone standard assets中的shader, 因为其中的shader做了简化与优化,运行更高效。
深入阅读:
http://www.unifycommunity.com/wiki/index.php?title=Shader_Archive#iPhone
补充学习:
Unity provides a language called "ShaderLab" which is similar to Nvidia's CgFX. You can use this to write custom shaders including vertex & fragment programs.
Read more about it in the Unity reference manual here: http://unity3d.com/support/documentation/Components/SL-Reference.html
A good way to start off is to have a look at the source code for Unity's built-in shaders, which you can download here:http://unity3d.com/download_unity/builtin_shaders.zip
Or check out the custom shaders that people have put up on the Unity Wiki, here:http://www.unifycommunity.com/wiki/index.php?title=Shaders
相关文章推荐
- 【风宇冲】Unity3D教程宝典之Shader篇:特别讲 CG函数
- 【风宇冲】Unity3D教程宝典之Shader篇:特别讲 CG函数
- Unity3D基于CG的Shader基础(二)
- Unity3DShader基础(CG)
- unity3D中Shader的分类和区别
- 【风宇冲】Unity3D教程宝典之Shader篇:特别讲 CG函数
- Unity3D中常见的三类Shader的区别与用法
- unity3d shader (CG)的教程
- 猫都能学会的Unity3D Shader入门指南(一)
- Unity3D Shader官方教程翻译(二)
- Unity3D Shader官方教程翻译(十五)----Shader语法 UsePass
- Unity3D Shader 新手教程(5/6) —— Bumped Diffuse Shader
- Unity3D Shader官方教程翻译(二)(ShaderLab)
- UIImagePickerController在iPhone和iPad上的区别
- Unity3D Shader入门指南(一)
- CGContextAddArc 和 CGContextAddArcToPoint 区别
- unity3d Shader镜面高光反射(使用fresenl), bolinPhone是没有物理依据的
- Unity3d Shader(三) Pass(GrabPass)捕获物体所在位置的屏幕的内容
- Unity3D Shader 编辑器搭建
- Unity3D Shader官方教程翻译(三)----Shader语法:属性