码迷,mamicode.com
首页 >  
搜索关键字:light    ( 1054个结果
Light OJ 1318 Strange Game 组合数+高速幂+分解因子
长度为l的用k种字符组成的字符串有k^l中 当中m个字符要不同样 那就是k^l*C(l, m)*(k-1)^m 有反复 要除以2 可是你mod n了 不能直接除 n不一定是素数 所以不能乘以逆元所以我都mod 2倍的n 最后的结果再除以2 特判l = 1 和 m = 0的情况#include #in...
分类:其他好文   时间:2015-05-15 19:31:56    阅读次数:121
No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案
No resource found that matches the given name 'Theme.AppCompat.Light 的完美解决方案 首先这个问题的产生是由于缺少Theme.AppCompat.Light这个主题产生的,而这个主题 的是存在于android\support\app...
分类:移动开发   时间:2015-05-09 10:03:14    阅读次数:125
ActionBar
Android中有两个最基本的Activity主题可以用于指定ActionBar的颜色,分别是: Theme.Holo,这是一个深色系的主题。 Theme.Holo.Light,这是一个浅色系的主题。 事件 public boolean onOptionsItemSelected(Men...
分类:其他好文   时间:2015-05-06 15:34:16    阅读次数:132
2DSprite添加Light照射(Unity3D开发之十六)
今天项目中需要用到黑夜灯光照射,由于普通的2DSprite使用的材质是不接收光反射的。所以我们必须修改Sprite Renderer的材质。第一步,建立工程下面是我建立的工程,你会发现Point l...
分类:编程语言   时间:2015-05-06 13:15:45    阅读次数:140
GLSL逐像素光照 【转】
转载:http://blog.csdn.net/hgl868/article/details/7872414逐像素的方向光(Directional Light per Pixel)这一节将把前面的shader代码改为逐像素计算的方向光。我们需要将工作按照两个shader拆分,以确定哪些是需要逐像素操...
分类:其他好文   时间:2015-05-06 12:27:26    阅读次数:147
android 自定义progressBar
//【使用progressBar】//【res/values/styles.xml】//【res/drawable/progress_horiaontal_orange_holo_light.xml】
分类:移动开发   时间:2015-05-04 17:33:28    阅读次数:147
POJ 1039 Pipe 枚举线段相交
PipeTime Limit:1000MSMemory Limit:10000KTotal Submissions:9493Accepted:2877DescriptionThe GX Light Pipeline Company started to prepare bent pipes for ...
分类:其他好文   时间:2015-05-01 17:14:50    阅读次数:154
light oj 1248 - Dice (III)(期望)
Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that the dice is fair, that means when you throw the dic...
分类:其他好文   时间:2015-05-01 12:08:28    阅读次数:141
light oj 1265 - Island of Survival(概率dp)
1265 - Island of Survival PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You are in a reality show, and the show is way too real t...
分类:其他好文   时间:2015-05-01 12:08:02    阅读次数:542
为THREEJS场景添加光影效果
添加光影效果主要用到的代码如下://使渲染器支持阴影贴图THREE.Render.shadowMapEnabled= true;//设置灯光阴影属性//设置灯光生成阴影THREE.Light.castShadow= true;//如果是调试状态,还可以把灯光的调试帮助框显示出来THREE.Light...
分类:Web程序   时间:2015-04-30 12:20:05    阅读次数:1177
1054条   上一页 1 ... 76 77 78 79 80 ... 106 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!