123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- Shader "Universal Render Pipeline/Nature/SpeedTree7 Billboard"
- {
- Properties
- {
- _Color("Main Color", Color) = (1,1,1,1)
- _HueVariation("Hue Variation", Color) = (1.0,0.5,0.0,0.1)
- _MainTex("Base (RGB) Trans (A)", 2D) = "white" {}
- _BumpMap("Normal Map", 2D) = "bump" {}
- _Cutoff("Alpha Cutoff", Range(0,1)) = 0.333
- [MaterialEnum(None,0,Fastest,1)] _WindQuality("Wind Quality", Range(0,1)) = 0
- }
- SubShader
- {
- Tags
- {
- "Queue" = "AlphaTest"
- "IgnoreProjector" = "True"
- "RenderType" = "TransparentCutout"
- "DisableBatching" = "LODFading"
- "RenderPipeline" = "UniversalPipeline"
- }
- LOD 400
- Pass
- {
- Name "ForwardLit"
- Tags { "LightMode" = "UniversalForward" }
- HLSLPROGRAM
- #pragma vertex SpeedTree7Vert
- #pragma fragment SpeedTree7Frag
- #pragma multi_compile _ _MAIN_LIGHT_SHADOWS
- #pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE
- #pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
- #pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS
- #pragma multi_compile _ _SHADOWS_SOFT
- #pragma multi_compile __ BILLBOARD_FACE_CAMERA_POS
- #pragma multi_compile __ LOD_FADE_CROSSFADE
- #pragma multi_compile_fog
- #pragma shader_feature_local EFFECT_BUMP
- #pragma shader_feature_local EFFECT_HUE_VARIATION
- #define ENABLE_WIND
- #include "SpeedTree7BillboardInput.hlsl"
- #include "SpeedTree7BillboardPasses.hlsl"
- ENDHLSL
- }
- Pass
- {
- Name "ShadowCaster"
- Tags{"LightMode" = "ShadowCaster"}
- HLSLPROGRAM
- #pragma vertex SpeedTree7VertDepth
- #pragma fragment SpeedTree7FragDepth
- #pragma multi_compile __ BILLBOARD_FACE_CAMERA_POS
- #pragma multi_compile __ LOD_FADE_CROSSFADE
- #define ENABLE_WIND
- #define DEPTH_ONLY
- #define SHADOW_CASTER
- #include "SpeedTree7BillboardInput.hlsl"
- #include "SpeedTree7BillboardPasses.hlsl"
- ENDHLSL
- }
- Pass
- {
- Name "DepthOnly"
- Tags{"LightMode" = "DepthOnly"}
- ColorMask 0
- HLSLPROGRAM
- #pragma vertex SpeedTree7VertDepth
- #pragma fragment SpeedTree7FragDepth
- #pragma multi_compile __ BILLBOARD_FACE_CAMERA_POS
- #pragma multi_compile __ LOD_FADE_CROSSFADE
- #define ENABLE_WIND
- #define DEPTH_ONLY
- #include "SpeedTree7BillboardInput.hlsl"
- #include "SpeedTree7BillboardPasses.hlsl"
- ENDHLSL
- }
- }
- }
|