Unity3D
文章平均质量分 58
coding_most
超级喜欢封装代码
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Unity3D Shader官方教程翻译(十八)----Shader语法 另外一些命令(分类)
ShaderLab syntax: other commands Category 分类 Category is a logical grouping of any commands below it. This is mostly used to "inherit" rendering state. For example, your shader might have multip转载 2013-02-19 10:53:54 · 709 阅读 · 0 评论 -
Unity3d 记录1
在制作拖拽的时候 网上好多例子 是用Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition) Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); Debug.Log(ray); 看API上面 写着ray 的origin 返回的值是 w原创 2013-10-25 11:55:54 · 879 阅读 · 0 评论 -
Unity3D Shader 初步学习
Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _CubeMap("CubeMap",CUBE)=""{} } SubShader { Pass{ CGPROGRAM #pragma vertex Vert #pragma fragment Frag #include "UnityCG.cginc" sampl原创 2013-08-06 14:21:04 · 1013 阅读 · 0 评论 -
unity3d 凹凸贴图、法线贴图、置换贴图
原帖地址:http://www.game798.com/html/2007-03/2997.htm 作者:FXCarl 首先我想说,对于凹凸贴图在计算机图形领域中的研究,最早开始于70年代末,至今已经有接近30年历史了。NormalMap只是一种目前很流行的凹凸贴图技术,而这里将会介绍一些目前游戏和在XBOX360和PlayStation3这种新世代主机上将会运用的凹凸贴图技术。转载 2013-04-09 10:15:07 · 2846 阅读 · 0 评论 -
Unity3D Built-in Shader详解一
Unity3D Built-in Shader详解一 Unity3D的Shader Unity里面的Shaders是使用一种叫ShaderLab的语言编写的,它同微软的.FX文件或者NVIDIA的CgFX有些类似。传统意义上的vertex shader和pixel shader 还是使用标准的Cg/HLSL 编程语言编写的。(因此Unity文档里面的Shader,都是指用转载 2013-02-20 09:56:29 · 1779 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十六)----Shader语法 GrabPass
ShaderLab syntax: GrabPass GrabPass is a special passtype - it grabs the contents of the screen where the object is about to be drawn into a texture. This texture can be used in subsequent pass转载 2013-02-19 10:53:01 · 785 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十二)----Shader语法:Pass的标记
ShaderLab syntax: Pass Tags Passes use tags to tell how and when they expect to be rendered to the rendering engine. pass使用标记来告诉渲染引擎在什么时候该如何渲染他们所期望的效果。 Syntax Tags { "TagName1" = "转载 2013-02-19 10:49:57 · 836 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十)----Shader语法:Pass的Alpha测试
ShaderLab syntax: Alpha testing The alpha test is a last chance to reject a pixel from being written to the screen. alpha测试是最后一个机会,拒绝将一个像素写到屏幕上。(可以理解为在将画面显示到屏幕上的最后1次修改,这次修改只能让该像素显示或不显示)转载 2013-02-19 10:49:05 · 831 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(九)----Shader语法:Pass的雾化处理
ShaderLab syntax: Fog Fog parameters are controlled with Fog command. Fog 命令控制雾化参数 Fogging blends the color of the generated pixels down towards a constant color based on distance fro转载 2013-02-19 10:48:27 · 850 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(五)----Shader语法:Pass
ShaderLab syntax: Pass ShaderLab 语法:Pass(通道编程) The Pass block causes the geometry of an object to be rendered once. 1个Pass块可以使一个几何物体被一次渲染。 Syntax 语法 Pass { [Name and Tag转载 2013-02-19 10:46:40 · 1008 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(三)----Shader语法:属性
ShaderLab syntax: Properties ShaderLab语法:属性 Shaders can define a list of parameters to be set by artists in Unity's material inspector. The Properties block in the shader file defines t转载 2013-02-19 10:45:32 · 851 阅读 · 0 评论 -
转载自风宇冲Unity3D教程学院 ----shader分类
原创文章如需转载请注明:转载自风宇冲Unity3D教程学院 引言,在Unity3d里,所有的图形绘制都必须通过Shader,即着色器。一般的使用过程中,我们用到的都是unity自带的Shader,即build-in shader。学习Shader后,自己写的Shader能做出很多你想要的特殊效果,增强游戏的画面表现。例如水的倒影。 LOGO的光影闪过等等效果等等。转载 2013-02-19 13:49:19 · 1361 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(二)
ShaderLab syntax: Shader ShaderLab语法:Shader Shader is the root command of a shader file. Each file must define one (and only one) Shader. It specifies how any objects whose material u转载 2013-02-19 10:44:54 · 1001 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十五)----Shader语法 UsePass
ShaderLab syntax: UsePass The UsePass command uses named passes from another shader. UsePass命令可以调用在另外1个Shader中已经被命名的passes 。 Syntax 语法 UsePass "Shader/Name" Inserts all passes转载 2013-02-19 10:52:34 · 1420 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十三)----Shader语法:Pass的Name
ShaderLab syntax: Name Syntax 语法 Name "PassName" Gives the PassName name to the current pass.将当前Pass命名为 PassName Details 详情 A pass can be given a name so that a UsePass comm转载 2013-02-19 10:50:43 · 660 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十一)----Shader语法:Pass的Blending(混合)
ShaderLab syntax: Blending 混合 Blending is used to make transparent objects. 混合是用来制作透明物体的。 When graphics are rendered, after all shaders have executed and all textures have been ap转载 2013-02-19 10:49:28 · 936 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(八)----Shader语法:Pass的纹理处理 .
ShaderLab syntax: Texturing After the basic vertex lighting has been calculated, textures are applied. In ShaderLab this is done usingSetTexture command. 在基本的顶点照明计算完成以后,纹理将被设置。在ShaderLab中用Se转载 2013-02-19 10:48:03 · 1291 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(四)----Shader语法:SubShader
ShaderLab syntax: SubShader ShaderLab语法:SubShader Each shader in Unity consists of a list of subshaders. When Unity has to display a mesh, it will find the shader to use, and pick the f转载 2013-02-19 10:46:05 · 714 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十九)----Shader语法,编写表面着色器
Writing Surface Shaders Writing shaders that interact with lighting is complex. There are different light types, different shadow options, different rendering paths (forward and deferred rendering)转载 2013-02-19 10:54:22 · 1410 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(一)
Unity3D Shader官方教程翻译 Shader Reference 着色参考 Shaders in Unity can be written in one of three different ways: Unity3D着色器,可以写在三种不同的方式之一: assurface shaders, asvertex and fragm转载 2013-02-19 10:43:20 · 918 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(十七)----Shader语法 FallBack
ShaderLab syntax: Fallback After all Subshaders a Fallback can be defined. It basically says "if none of subshaders can run on this hardware, try using the ones from another shader". 在所有Subs转载 2013-02-19 10:53:28 · 1159 阅读 · 1 评论 -
Unity3D Shader官方教程翻译(十四)----Shader语法:Pass的BindChannels 绑定通道
ShaderLab syntax: BindChannels 绑定通道。 BindChannels command allows you to specify how vertex data maps to the graphics hardware. BindChannels 命令 允许你指定顶点数据如何映射到显卡中。 BindChannels has no effec转载 2013-02-19 10:52:05 · 978 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(七)----Shader语法:Pass的Culling & Depth Testing
ShaderLab syntax: Culling & Depth Testing 语法:面剔除及深度测试 Culling is an optimization that does not render polygons facing away from the viewer. All polygons have a front and a back si转载 2013-02-19 10:47:35 · 938 阅读 · 0 评论 -
Unity3D Shader官方教程翻译(六)----Shader语法:Pass的Color, Material, Lighting
ShaderLab syntax: Color, Material, Lighting ShaderLab 语法:颜色,材质,光照 The material and lighting parameters are used to control the built-in vertex lighting. Vertex lighting is the standard Direct3D/转载 2013-02-19 10:47:05 · 1365 阅读 · 0 评论
分享