码迷,mamicode.com
首页 >  
搜索关键字:vertex and frag    ( 617个结果
Vertex and fragment programs
【Vertex and fragment programs】 When you use vertex and fragment programs (the so called "programmable pipeline"), most of the hardcoded functionality....
分类:其他好文   时间:2014-07-29 13:39:18    阅读次数:175
[原]NGUI之按钮置灰
传统按钮置灰,需要使用另外一张纹理。本例通过修改shader和NGUI sprite的r值实现按钮置灰。优势:节省纹理,操作简单将NGUI Unlit/Transparent Colored片段部分改成如下:fixed4 frag (v2f i) : COLOR{ fixed4 col= te...
分类:其他好文   时间:2014-07-28 14:52:43    阅读次数:392
Flat Shading
【Flat Shading】 Per-vertex渲染技术是针对每个顶点进行渲染计算,然后把计算得到的颜色值和这个顶点关联起来。然后在多边形的面上进行颜色插值以后的平滑的渲染效果。这也叫做Gouraud Shading。在早起的OpenGL版本中,它是默认的渲染技术。 有的时候我们需要达到遮掩过.....
分类:其他好文   时间:2014-07-28 14:25:13    阅读次数:415
【Unity Shaders】Vertex Magic —— 访问顶点颜色
本系列主要参考《Unity Shaders and Effects Cookbook》一书(感谢原书作者),同时会加上一点个人理解或拓展。这里是本书所有的插图。这里是本书所需的代码和资源(当然你也可以从官网下载)。========================================== 分割线 ==========================================写在前面...
分类:其他好文   时间:2014-07-28 00:05:40    阅读次数:328
Vertex Lit
【Vertex Lit】 Vertex Lit path generally renders each object in one pass, with lighting from all lights calculated at object vertices. It's the fastes.....
分类:其他好文   时间:2014-07-26 17:06:21    阅读次数:202
割点算法模板(Cut-vertex)
下面是求割點的模板,還有cut_vertex_num[]數組(array)記錄了哪些是割點 Int cut_vertex_num[]; void dfs(int cur,int pa) { int child=0,flag=0,i; low[cur]=dfn[cur]=++depth; for(i=0;i<adj[cur].size();i++) { i...
分类:其他好文   时间:2014-07-26 15:32:23    阅读次数:289
glTexGen
【glTexGen】 Rather than having to explicitly provide a texture coordinate for each vertex, we can use texture coordinate generation (texgen) functions....
分类:其他好文   时间:2014-07-23 20:48:55    阅读次数:227
Texture Combiner
【Texture Combiner】 After the basic vertex lighting has been calculated, textures are applied. In ShaderLab this is done usingSetTexturecommand. SetT.....
分类:其他好文   时间:2014-07-23 12:51:36    阅读次数:266
Color, Material, Lighting
【Color, Material, Lighting】 The material and lighting parameters are used to control the built-in vertex lighting. Vertex lighting is the standard Di....
分类:其他好文   时间:2014-07-23 12:25:29    阅读次数:228
Android Fragment 真正的完全解析(上)
自从Fragment出现,曾经有段时间,感觉大家谈什么都能跟Fragment谈上关系,做什么都要问下Fragment能实现不~~~哈哈,是不是有点过~~~ 本篇博客力求为大家说明Fragment如何产生,什么是Fragment,Fragment生命周期,如何静态和动态的使用Fragment,Fragment回退栈,Fragment事务;以及Fragment的一些特殊用途,例如:没有布局的Frag...
分类:移动开发   时间:2014-07-20 11:32:00    阅读次数:314
617条   上一页 1 ... 56 57 58 59 60 ... 62 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!