会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
酷熊
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
40
下一页
2018年2月6日
cmd命令延时执行
摘要: choice /t 5 /d y /nstart a.txt
阅读全文
posted @ 2018-02-06 14:01 酷熊
阅读(1464)
评论(0)
推荐(0)
2018年2月5日
最简单的GLSL,Shader
摘要: Vertex Shader Fragment Shader
阅读全文
posted @ 2018-02-05 15:16 酷熊
阅读(214)
评论(0)
推荐(0)
2018年1月25日
深度缓存ZBuffer线性化
摘要: double linearizeDepth(double nearz,double farz,double depth) { depth = 2.0 * depth - 1.0; return (2.0 * nearz) / (farz + nearz - depth * (farz - nearz)); }
阅读全文
posted @ 2018-01-25 10:06 酷熊
阅读(448)
评论(0)
推荐(0)
2018年1月2日
计算直线与WGS84椭球的交点
摘要: /************************************************************************/ /*线段与WGS84椭球求交 x^2/a^2+y^2/a^2+z^2/b^2=1 (x-x0)/m=(y-y0)/n=(z-z0)/p=t m=x1-x0 n=y1-y0 p=z1-z0 p0线段起始点 p1线段终点 center椭球球心 a =...
阅读全文
posted @ 2018-01-02 12:41 酷熊
阅读(1023)
评论(0)
推荐(0)
2017年12月20日
Unity Shader 设置纹理采样tex2D过滤方式
摘要: 双击红色框区域
阅读全文
posted @ 2017-12-20 15:19 酷熊
阅读(4888)
评论(0)
推荐(0)
2017年12月19日
Unity Shader 自定义纹理坐标变量写法
摘要: Properties { _R("Radius", Range(0,100)) = 1.0 _ColorTex("ColorTex (RGB)", 2D) = "red" {} struct Input { float2 uv_MainTex; float3 worldPos; //flo...
阅读全文
posted @ 2017-12-19 14:44 酷熊
阅读(1187)
评论(0)
推荐(0)
Unity Shader 获取模型空间坐标
摘要: CGPROGRAM // Physically based Standard lighting model, and enable shadows on all light types #pragma surface surf Standard fullforwardshadows vertex:vert struct Input { ...
阅读全文
posted @ 2017-12-19 12:31 酷熊
阅读(2809)
评论(0)
推荐(0)
2017年12月18日
Unity Shader 修改自定义变量的值
摘要: Texture2D colorTxt = new Texture2D(size, size); Color[] colors = new Color[10]{ Color.black, Color.white, Color.yellow , Color.gray , Color.green , Co
阅读全文
posted @ 2017-12-18 11:17 酷熊
阅读(3959)
评论(0)
推荐(0)
2017年12月15日
VS无法导航到插入点F12失败
摘要: 关闭VS 关闭VS 开启控制台并导航到Visual安装文件夹,例如C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE 开启控制台并导航到Visual安装文件夹,例如C:\Program Files (x8
阅读全文
posted @ 2017-12-15 11:57 酷熊
阅读(3092)
评论(0)
推荐(0)
2017年12月11日
系统头文件cmath,cstdlib报错
摘要: 这种情况下,需要调整.cpp文件中的头文件引用顺序,例如 A.cpp中 #include X.h #include Y.h #include A.h 尝试调整一下X.h和Y.h和A.h的顺序
阅读全文
posted @ 2017-12-11 10:45 酷熊
阅读(3156)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
40
下一页
公告