Shader "Test"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_RegionTex ("Region Texture", 2D) = "white" {}
_RedRegionCol ("Region Red Color", Color) = (1,1,1,1)
_GreenRegionCol ("Region Green Color", Color) = (1,1,1,1)
_BlueRegionCol ("Region Blue Color", Color) = (1,1,1,1)
_RedRegionIntensity("Red Region Intensity", Range(0.1, 2.0)) = 1.0
_GreenRegionIntensity("Green Region Intensity", Range(0.1, 2.0)) = 1.0
_BlueRegionIntensity("Blue Region Intensity", Range(0.1, 2.0)) = 1.0
}
SubShader
{
//Tags { "RenderType"="Opaque" }
Tags
{
"Queue"="Transparent"
"RenderType"="Transparent"
}
Blend SrcAlpha OneMinusSrcAlpha
LOD 100
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "U
Unity Shader Example 6 (区域变色)
最新推荐文章于 2023-04-13 03:12:17 发布
本文探讨了Unity3D中Shader的应用,重点介绍了如何实现特定区域内颜色的变化效果,这对于游戏场景和UI设计有着重要的作用。通过理解并应用Shader语言,可以为3D模型增添动态视觉效果。
摘要由CSDN通过智能技术生成