码迷,mamicode.com
首页 >  
搜索关键字:surface shader    ( 1969个结果
unity3d ppsspp模拟器中的post processing shader在unity中使用
这个位置可以看到ppsspp的特殊处理文件位置来看看这些特效用来测试的未加特效图片ppsspp:传说系列一生爱---英杰传说最后的战士aacolor是关于饱和度,亮度,对比度,色调的调节,ppsspp中的默认参数为饱和度加强1.2倍,对比度增强1.25倍,在unity中我们可以设为外部变量自己调节关...
分类:编程语言   时间:2015-07-31 12:22:47    阅读次数:274
unity, surface shader access world position and localposition
一,surface shader中访问worldposition在surface shader中访问世界坐标,只需在Input结构体中声明float3 worldPos即可,如下: structInput{float2uv_MainTex;float3worldPos;};voidsurf(In.....
分类:数据库   时间:2015-07-30 14:51:12    阅读次数:380
unity3d shader之实时室外光线散射(大气散射)渲染
散射需要:吸收,内散射,外散射 分为瑞利散射Rayleigh Scattering和米氏散射 Mie Scattering  后面会详细讲解 大气中散射由多种原因产生,微粒,尘埃,水蒸气等等 阳光由于散射增加会减弱并变色   物体也会随着距离增加散射增加而减弱并变色   大气光线散射由于 一天中的时间,天气,污染的改变而改变 散射共通篇 Radiometric...
分类:编程语言   时间:2015-07-30 11:33:26    阅读次数:444
【淡墨Unity3D Shader计划】五 圣诞用品: Unity在Shader三种形式的控制&混合操作编译
本系列文章由@浅墨_毛星云出品,转载请注明出处。 文章链接:http://blog.csdn.net/poem_qianmo/article/details/42060963 作者:毛星云(浅墨) 微博:http://weibo.com/u/1723155442 邮箱:happylifemxy@1....
分类:编程语言   时间:2015-07-30 09:27:19    阅读次数:225
嵌入式linux------SDL移植(am335x下显示bmp图片)
#include #include "/usr/local/ffmpeg_arm/include/SDL/SDL.h" char *bmp_name[3] = {"000.bmp","111.bmp","222.bmp"}; int main() { int i=0; //The images SDL_Surface* hello = NULL; SDL_Surfa...
分类:系统相关   时间:2015-07-28 18:50:59    阅读次数:218
zoj 3888 Twelves Monkeys(zoj 2015年7月月赛)
Twelves Monkeys Time Limit: 5 Seconds      Memory Limit: 32768 KB James Cole is a convicted criminal living beneath a post-apocalyptic Philadelphia. Many years ago, the Earth's surface had been ...
分类:其他好文   时间:2015-07-28 10:54:16    阅读次数:149
Shader 使按钮图片致灰
Shader "UI/Default Grey" { Properties { [PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} _Color ...
分类:其他好文   时间:2015-07-27 20:26:08    阅读次数:167
unity, unlit surface shader (texColor only surface shader)
要实现双面透明无光照只有纹理色的surface shader。错误的写法:(导致带有曝光)Shader "Custom/doubleFaceTranspTexColor" { Properties { _Color ("Color", Color) = (1,1,1,1) _...
分类:编程语言   时间:2015-07-27 14:42:06    阅读次数:195
unity, 在surface shader中访问顶点色
//ref:Customdatacomputedper-vertex:http://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.htmlShader"Custom/myStandard_vertexColor"{Properties{_Color...
分类:编程语言   时间:2015-07-26 19:03:17    阅读次数:203
Surface Shader
Surface Shader: (1)必须放在SubShdader块,不能放在Pass内部; (2)#pragma sufrace surfaceFunction lightModel [optionalparams] (3)格式 CG规定了声明为表面着色器的方法(就是我们这里的surf)的...
分类:其他好文   时间:2015-07-26 18:54:54    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!