都是精度问题,移动平台开发针对大量性能不一的GPU。各种无法预料的问题。 UV动画出现卡顿,解决方案,限制UV的范围。只能缓解。 涉及到_Time的使用时,很大几率会出现问题。不管是使用_Time进行UV顶点,还是顶点动画,在一些移动设备尤其是旧的移动设备上,shader mode 2.0,frag ...
分类:
移动开发 时间:
2017-08-17 14:31:21
阅读次数:
254
图概述 图(Graph)是一种比线性结构和树形结构都要复杂的数据结构。简单讲,图是由表示数据元素的的集合V和表示数据之间关系的集合E组成。当中,数据元素常称作顶点(vertex)。数据之间的关系常称作边(edge)。故图可记为G=<V,E>,当中V是顶点的有穷非空集合,E是边的集合。在图中顶点的前驱 ...
分类:
其他好文 时间:
2017-08-17 10:50:24
阅读次数:
298
Give you a tree with N vertices and N‐ 1 edges, and then ask you Q queries on “which vertex is Y's son that has the smallest number and which vertex i ...
分类:
其他好文 时间:
2017-08-16 20:27:49
阅读次数:
194
小记一下用法与问题,时更 surface shader就不用操心了,自带lightmap计算 主要是vertex fragment shader部分 Unity5 bake light map有三种情况: 1.Non-directional 2.directional 3.directional s ...
分类:
Web程序 时间:
2017-08-10 16:54:47
阅读次数:
288
一、题目回顾 题目链接:Alyona and a tree Alyona has a tree with n vertices. The root of the tree is the vertex 1. In each vertex Alyona wrote an positive integer ...
分类:
其他好文 时间:
2017-08-09 10:17:16
阅读次数:
197
mul (UNITY_MATRIX_MVP,upPos):參数说明由第一个參数UNITY_MATRIX_MVP 矩阵去影响第二个參数upPos向量(或者矩阵)Shader "Sbin/vf35" { SubShader { pass{ CGPROGRAM #pragma vertex vert #p ...
分类:
其他好文 时间:
2017-08-07 20:42:51
阅读次数:
103
penGL4.0发布了Tessellation shader(Control + Evaluation shader)。到OpenGL4.* 为止,现在OpenGL已经支持了5种不同类型的shader。 1.Vertex Shader,简称VS 2.TESS Control Shader (... ...
分类:
其他好文 时间:
2017-08-05 17:53:18
阅读次数:
198
画四个点在窗体。 #pragma once #pragma comment(lib,"d3d9.lib") #pragma comment(lib,"d3dx9.lib") #include<d3d9.h> #include<d3dx9.h> //TODO: -1 custom vertex str ...
分类:
其他好文 时间:
2017-07-21 12:27:20
阅读次数:
146
基本语法:<scheme>://<user>:<password>@<host>:<port>/<path>;<params>?<query>#<frag>params:参数query:数据库查询frag:索引http事务报文:请求:request响应:response报文语法格式:request报文<method>&l..
分类:
Web程序 时间:
2017-07-20 22:22:25
阅读次数:
207
在FragmentActivity的fragment跳转的时候加入到执行栈。 public void switchFrag(BaseFragment to) { getSupportFragmentManager() .beginTransaction() .replace(R.id.frag_lo ...
分类:
移动开发 时间:
2017-07-16 11:16:48
阅读次数:
301