Shader "Unlit/Test"
{
Properties
{
[Gamma][Header(CubeMap)]_MainColor("MainColor",COLOR)=(0.5,0.5,0.5,1)
_Spec("Spec",Range(1,8))=1
[NoScaleOffset]_Tex("CubeMap",CUBE)="black"{}
[Header(Rotation)][Toggle(_ENABLEROTATION_ON)]_EnableRotation("Enable Rotation",Float)=0
[IntRange]_Rotation("Rotation",Range(0,360))=0
_RotationSpeed("RotationSpeed",float)=1
[Header(Fog)][Toggle(_ENABLEFOG_ON)]_EnableFog("Enable Fog",float)=0
_FogHeight("FogHeight",Range(0,1))=1
_FogSmooth("FogSmooth",Range(0.01,1))=0.01
_FogHill("FogHill",Range(0,1))=0.5
}
SubShader
{
Tags { "RenderType"="Background" "Queue"="Background" "IgnoreProjector"="True" "ForceNoShadowCasting"="True"}
LOD 100
Cull Off
ZWrite Off
CGPROGRAM
#include "UnityShaderVariables.cginc"
#include "UnityCG.cginc"
#pragma target 3.0
#pragma shader_feature _ENABLEROTATION_ON
#pragma shader_feature _ENABLEFOG_ON
#pragma surface surf Lint keepalpha noshadow noambient novertexlights nolightmap nodynlightmap
Unity3D Shader:动态星空
最新推荐文章于 2025-07-03 17:27:34 发布