上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页
摘要: 一套QQ飞车的衣服,模仿其效果写的shader,效果如下: 部分shader如下: 1 Shader "qq/Cloth" 2 { 3 Properties 4 { 5 _MainTex ("Base (RGB)", 2D) = "white" {} 6 _NormalMap("Normal Map 阅读全文
posted @ 2019-05-08 10:18 孤独の巡礼 阅读(2786) 评论(2) 推荐(0) 编辑
摘要: 1. 找到夜神模拟器安装目录bin目录,如:D:\Program Files\Nox\bin 2.打开cmd,切到bin目录,如: 3. 输入命令,adb logcat 即可,(可使用命令chcp 65001切换编码,以能正常显示中文)如: 或使用:adb connect 127.0.0.1:620 阅读全文
posted @ 2019-04-25 11:21 孤独の巡礼 阅读(1805) 评论(0) 推荐(0) 编辑
摘要: 如何使用xlua实现协程,示例代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331/p/10735773.html 阅读全文
posted @ 2019-04-19 14:33 孤独の巡礼 阅读(1528) 评论(0) 推荐(0) 编辑
摘要: Color Mask解释,见unity文档: ColorMask Set color channel writing mask. Writing ColorMask 0 turns off rendering to all color channels. Default mode is writin 阅读全文
posted @ 2019-04-09 10:17 孤独の巡礼 阅读(8076) 评论(1) 推荐(0) 编辑
摘要: 一,部分游戏规则如下: 二,代码如下: 1. 游戏逻辑核心代码 1 using System.Collections.Generic; 2 using UnityEngine; 3 4 namespace Modules.UI 5 { 6 // 逻辑与UI分离,这是逻辑类 7 public clas 阅读全文
posted @ 2019-04-04 10:29 孤独の巡礼 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331/p/10653398.html 阅读全文
posted @ 2019-04-04 10:22 孤独の巡礼 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 使用 Application.Quit(),但在 editor 模式下使用 Application.Quit()是没用的,要用 EditorApplication.isPlaying = false。 故代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331 阅读全文
posted @ 2019-03-20 16:18 孤独の巡礼 阅读(10906) 评论(0) 推荐(0) 编辑
摘要: .Net已封装好算法,直接调用即可,代码如下: 转载请注明出处:https://www.cnblogs.com/jietian331/p/9707771.html 阅读全文
posted @ 2018-09-26 16:32 孤独の巡礼 阅读(1151) 评论(0) 推荐(0) 编辑
摘要: 这里使用一种更高效地从深度纹理中重建世界坐标的方法。 首先计算摄像机的视锥体的四条射线向量进行线性插值,插值后的值便是该像素在世界空间坐标下到摄像机的方向。 然后通过与深度值相乘即可得到摄像机位置到该像素的向量,加上摄像机的位置则是该像素在世界空间中的位置。 转载请注明出处:https://www. 阅读全文
posted @ 2018-08-08 15:56 孤独の巡礼 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: 要想通过屏幕后期处理效果实现高度雾,就得知道屏幕中每个像素在世界空间中的坐标。 其中一种方法是: 打开深度纹理,通过uv坐标和深度计算出屏幕中每个像素在NDC中的坐标,再通过世界坐标到投影空间的转换矩阵的逆矩阵来变换,即可得到其在世界空间中的坐标。 但此种方法需要在 fragment shader  阅读全文
posted @ 2018-08-08 10:52 孤独の巡礼 阅读(2229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 19 下一页