之前的人皮渲染相关 前篇1:unity3d Human skin real time rendering 真实模拟人皮实时渲染 前篇2:unity3d Human skin real time rendering plus 真实模拟人皮实时渲染 plus篇 SSS:Unity3d shader之次表面散射(Subsurface Scattering) PBR:Unity3d 基于物理渲染Physically-Based Rendering之specular BRDF Screen-Space P
之前看了别人的一份源码,讲到了球体表面平均分割点,于是也好奇去查了一下算法,自己写不出来,借用算法在unity写了一个小demo using UnityEngine; using System.Collections; public class DistrbutedPointsOnSphere : MonoBehaviour { public Camera camera; /// <summary> /// 父级 -- 球 /// </summary> public Transfo
--------------更新 更简单的方法: //depth: raw depth, nonlinear, 0 at near plane, 1 at far plan float4 screenUVwithDepth=float4(screenUV,depth,1);//now x,y,z are in [0,1] ndcPos=screenUVwithDepth*2-1;//now x,y,z are in [-1,1] and w=1