cg
文章平均质量分 92
zlix0000
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【Shader】Outline 缩放和背面消隐方式实现
Shader "ZLIX/Outline/ScalePass" { Properties{ _OutlineColor("Outline Color",Color)=(0.7,0.4,0.5,1) _OutlineWith("Outline With",Range (0,0.1))=0.01 } Subshader{ Pass{ Cull Front CGPRO原创 2017-09-12 20:20:02 · 1303 阅读 · 0 评论 -
Surface Shaders 内置灯光模型(Build in lighting models)Lighting.cginc 和如何自定义灯光类型
//如果没有定义 LIGHTING_INCLUDED 的话 (这是"if not defined"的简写,是宏定义的一种,它是可以根据是否已经定义了一个变量来进行分支选择,)#ifndef LIGHTING_INCLUDED //使用 LIGHTING_INCLUDED #define LIGHTING_INCLUDED //引用 XXX #include "Un原创 2017-10-31 14:07:48 · 1775 阅读 · 0 评论 -
Built-in shader variables 内置的着色器变量
Built-in shader variables 内置的着色器变量Unity provides a handful of built-in global variables for your shaders: things like current object’s transformation matrices, light parameters, current time翻译 2017-10-23 19:22:33 · 449 阅读 · 0 评论 -
Providing vertex data to vertex programs 向顶点程序提供顶点数据
For Cg/HLSL vertex programs, theMesh vertex data is passed as inputs to the vertexshader function. Each input needs to havesemantic speficied for it: for example, POSITION input is the vertex po翻译 2017-10-23 19:15:47 · 511 阅读 · 0 评论
分享