摘要:
阅读全文
摘要:
Linear space lighting is a term that game developers are becoming ever more used to hearing as games reach for the next level of realism with physical 阅读全文
摘要:
流水线: 1.应用阶段:(CPU)输出渲染图元,粗粒度剔除等 比如完全不在相机范围内的需要剔除,文件系统的粒子系统实现就用到粗粒度剔除。 2.几何阶段:(GPU)把顶点坐标转换到屏幕空间,包含了模型空间 到世界空间 到观察空间(相机视角view) 到齐次裁剪空间(投影project2维空间,四维矩阵 阅读全文
摘要:
E.1 Mathematical Functions Table E-1 lists the mathematical functions that the Cg Standard Library provides. The table includes functions useful for t 阅读全文
摘要:
NameDescription abs Absolute value (per component). acos Returns the arccosine of each component of x. all Test if all components of x are nonzero. Al 阅读全文
摘要:
public static Texture2D TextureCut(Texture2D tex,float ratio = 0.8f) { if (tex == null) return null; if (ratio <= 0) return tex; Color color; int widt 阅读全文
摘要:
批量设置 批量清空 递归方法 阅读全文
摘要:
Shader "Custom/ChromaKey" { Properties { _MainTex ("Base (RGB)", 2D) = "white" {} _thresh ("Threshold", Range (0, 16)) = 0.8 _slope ("Slope", Range (0, 1)) = 0.2 ... 阅读全文