1、URL是通过描述资源的位置来标识资源的,而URN则是通过名字来标识资源的,与它们当前所处位置无关。2、URL的语法:<scheme>://<user>:<password>@<host>:<port>/<path>;<params>?<query>#<frag>2.1、scheme:访问服务..
分类:
其他好文 时间:
2014-09-24 04:40:46
阅读次数:
173
Given a graph G(V, E), a clique is a sub-graph g(v, e), so that for all vertex pairs v1, v2 in v, there exists an edge (v1, v2) in e. Maximum clique is the clique that has maximum number of
vertex.
...
分类:
其他好文 时间:
2014-09-11 08:47:58
阅读次数:
260
之前有人做过,不过效率不高:http://blog.csdn.net/onerain88/article/details/12197277他的代码:fixed4 frag (v2f i) : COLOR{ fixed4 col; if (i.color.r < 0.001) { col = t...
分类:
其他好文 时间:
2014-09-05 19:49:41
阅读次数:
247
GLSL 的产生,可以为了更灵活的3D图像编程
APP和GPU的关系图
GLSL 包括 Vertex programs 和 Fragment pgrograms, 实际是对 Geometry 和 Rasterization 的输出
管线处理如下,以前管线不能编程,现在GLSL让管线更灵活了。
Shader 的知...
分类:
其他好文 时间:
2014-09-05 18:22:11
阅读次数:
276
坐标系与基本图元(6)灵活顶点格式灵活顶点格式(Flexible Vertex Format, FVF)用来描述在顶点缓冲区中的顶点存储格式中包含了哪些属性。Direct3D应用程序可以用几种不同的方式定义灵活顶点格式。灵活顶点格式使应用程序只使用它需要的顶点数据,排除那些它不需要的组成成分。这样,...
分类:
其他好文 时间:
2014-09-01 12:30:33
阅读次数:
257
一、Fragment简介 1.Fragment作为Activity界面的一部分组成出现; 2.可以在一个Activity中同时出现多个Fragment,并且,一个Fragment亦可在多个Activity中使用; 3.在Activity运行过程中,可以添加、移除或者替换Frag...
分类:
移动开发 时间:
2014-08-29 00:05:06
阅读次数:
401
4. 转换HTML代码为DOM元素先创建一个文档片段DocumentFragment,然后调用方法jQuery.clean(elems, context, frag-ment, scripts)将HTML代码转换为DOM元素,并存储在创建的文档片段中。!fragment为true时可能有三种情况:?...
分类:
Web程序 时间:
2014-08-26 16:46:56
阅读次数:
432
在deferred shading 和post process 阶段, 通常要做的一件事情就是讲裁减空间坐标转换到屏幕空间的纹理坐标.这里面通常的做法就是Vertex Shader 输出clip space position 到pixel shader.pixel shader 做除法,然后再 + ...
分类:
其他好文 时间:
2014-08-26 15:10:16
阅读次数:
266
Passing Data to the Vertex ShaderVertex AttributesAt the start of the OpenGL pipeline,we use the in keyword to bring inputs into the vertex shader.Bet...
1. vertex shader 和 fragment shader 通过varying变量传递数据, 如下代码在编译fragment shader时候会提示编译错误vertex shaderFragment shader varying vec4 v_color; ...
分类:
其他好文 时间:
2014-08-19 00:59:03
阅读次数:
355