unity的shader学习笔记
shader基础知识
#一、propreties
#二、subshader
#三、fallback
一、unity中使用shaderlab语言进行编写,shaderlab分为三大块,属性、subshader、fallback
(1)properties
格式:_属性名(“显示名称”,类型)=默认值
Properties{
_color("color", 2D) = "white" {}//颜色
_norml("norml", 2D) = "bump" {}//法线
_anbient("anbie
原创
2020-07-29 15:56:18 ·
296 阅读 ·
0 评论