最近入门学习shader,语法倒没什么,有一个奇怪的问题,如果把编译平台从pc转换为android模式的话,如果你的shader 带 Normal Mapping 的 话,效果和android上的真机不一样。 上图: google 了一下,找到了解决方案: http://forum...
分类:
移动开发 时间:
2014-08-25 20:46:34
阅读次数:
241
这题感觉和POJ 1988 Cube Stacking 很像,在路径压缩的同时递归出来的时候跟新distant数组 1 //#define LOCAL 2 #include 3 #include 4 using namespace std; 5 6 const int maxn = 20000...
分类:
Web程序 时间:
2014-08-24 19:22:02
阅读次数:
211
题意:有编号为1~N的N个小木块,有两种操作M x y 将木块x所在的堆放到木块y所在的堆的上面C x 询问木块x下面有多少块木块代码巧妙就巧妙在GetParent函数中在进行路径压缩的同时,也计算好了该木块对应的under值这个需要好好体会 1 //#define LOCAL 2 #include...
分类:
其他好文 时间:
2014-08-24 10:13:22
阅读次数:
168
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-23 18:53:01
阅读次数:
180
MySQL数据库中的类型为longBlob实体类定义为:byte[] 类型映射文件配置为:type="org.springframework.orm.hibernate3.support.BlobByteArrayType异常信息:1 org.hibernate.MappingException: ...
分类:
移动开发 时间:
2014-08-23 15:16:30
阅读次数:
267
参考并转载 http://www.cnblogs.com/bhtfg538/archive/2008/11/25/1341016.htmlFirst:(8)SELECT(9)DISTINCT(11)(1)FROM(3)JOIN(2)ON(4)WHERE(5)GROUPBY(6)WITH{CUBE|R...
分类:
数据库 时间:
2014-08-23 09:57:20
阅读次数:
193
Problem Description
Given an N*N*N cube A, whose elements are either 0 or 1. A[i, j, k] means the number in the i-th row , j-th column and k-th layer. Initially we have A[i, j, k] = 0 (1 <= i, j, k <...
分类:
其他好文 时间:
2014-08-23 01:09:39
阅读次数:
274
原题:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input...
分类:
其他好文 时间:
2014-08-21 19:30:24
阅读次数:
225
using UnityEngine;using System.Collections;public class CreateMap : MonoBehaviour { protected GameObject plane; protected GameObject cube; pr...
分类:
其他好文 时间:
2014-08-21 18:39:24
阅读次数:
194
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con...
分类:
其他好文 时间:
2014-08-20 20:56:53
阅读次数:
231