上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: 代码如下: static void StartProcess(string folder, string processName) { string path = Path.Combine(folder, processName); try { Process.Start(path); } catc 阅读全文
posted @ 2021-02-05 11:26 孤独の巡礼 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 using System; 2 using System.Collections.Generic; 3 using UnityEditor; 4 using UnityEngine; 5 6 7 public class RemoveAminCurve : AssetPostproc 阅读全文
posted @ 2021-01-21 19:47 孤独の巡礼 阅读(684) 评论(0) 推荐(0) 编辑
摘要: 效果如下: 代码如下: Shader "Custom/Study/Water" { Properties { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Texture", 2D) = "white" {} _NormalMap ("Normal", 阅读全文
posted @ 2020-12-03 15:48 孤独の巡礼 阅读(2069) 评论(0) 推荐(1) 编辑
摘要: 效果如下(头部无轮廓): 原理:使用2个pass来渲染。 第一个pass中,使用轮廓线颜色渲染整个背面,并在视角空间下把模型顶点沿着法线方法向外扩张一段距离,来让轮廓线可见,公式为: viewPos += viewNormal * _Outline; 注意:如果直接使用顶点法线进行扩展,对于一些内凹 阅读全文
posted @ 2020-09-08 15:58 孤独の巡礼 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 static MD5 s_md5; 2 3 static MD5 MD5Obj => s_md5 ??= MD5.Create(); 4 5 6 public static string ComputeHash(byte[] buffer) 7 { 8 if (buffer == n 阅读全文
posted @ 2020-08-26 15:18 孤独の巡礼 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 参考代码如下: 1 using System; 2 using System.Net; 3 using System.Net.Sockets; 4 using System.Collections.Generic; 5 using UnityGMClient.Network.Utility; 6 7 阅读全文
posted @ 2020-08-12 17:26 孤独の巡礼 阅读(582) 评论(0) 推荐(0) 编辑
摘要: Unity与nodejs图片服上传下载图片等的项目代码,分享如下: 1 using UnityEngine; 2 using System.Collections; 3 using System.Text; 4 using System.Collections.Generic; 5 using Sy 阅读全文
posted @ 2020-05-09 17:16 孤独の巡礼 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/zhenzaizai/p/7434669.html Ftp模块: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Li 阅读全文
posted @ 2020-05-07 10:27 孤独の巡礼 阅读(715) 评论(0) 推荐(0) 编辑
摘要: 1. 一年新高: // 创下新高 isReachHigh := HIGH >= HHV(HIGH, 250); // 均线多头排列 isMaSorted := CLOSE > MA(CLOSE, 20) AND MA(CLOSE, 20) > MA(CLOSE, 120) AND MA(CLOSE, 阅读全文
posted @ 2020-04-14 21:51 孤独の巡礼 阅读(803) 评论(0) 推荐(0) 编辑
摘要: 如何实现化妆功能,更换眉毛,嘴唇,眼球,胡子等? 即如下效果: 首先是shader,这个实现起来想必非常简单,相当于把一张要替换的图片叠加到脸部纹理上,当然还要给定一个具体的纹理坐标。 示例代码如下: 1 Shader "America/Character/Tattoo/America-Diffus 阅读全文
posted @ 2020-04-08 13:23 孤独の巡礼 阅读(526) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页