unity 的 build-in shader “Self-Illumin/Diffuse” 源码如下
Shader "Self-Illumin/Diffuse" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Gloss (A)", 2D) = "white"<
这篇博客介绍了如何在Unity中获取内置Shader 'Self-Illumin/Diffuse'的Alpha值,通过在CGPROGRAM块中添加#pragma surface surf Lambert alpha,允许在Inspector面板中直接查看和编辑。同时探讨了是否需要将Tags中的“RenderType”从“Opaque”更改为“Transparent”,以及添加"Queue" = "Transparent"的影响和目的。
unity 的 build-in shader “Self-Illumin/Diffuse” 源码如下
Shader "Self-Illumin/Diffuse" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB) Gloss (A)", 2D) = "white"<

被折叠的 条评论
为什么被折叠?
