VertexLights = ( 1 < < 1 ) ,
DirectionalShadows = ( 1 < < 2 ) ,
LocalShadows = ( 1 < < 3 ) ,
SoftShadows = ( 1 < < 4 ) ,
}
public class LightweightKeywords
public static readonly string MainLightCookieText = "_MAIN_LIGHT_COOKIE" ;
public static readonly string DirectionalShadowsText = "_SHADOWS_ENABLED" ;
public static readonly string LocalShadowsText = "_LOCAL_SHADOWS_ENABLED" ;
public static readonly string SoftShadowsText = "_SHADOWS_SOFT" ;
public static readonly string CascadeShadowsText = "_SHADOWS_CASCADE" ;
public static readonly ShaderKeyword AdditionalLights = new ShaderKeyword ( AdditionalLightsText ) ;
public static readonly ShaderKeyword VertexLights = new ShaderKeyword ( VertexLightsText ) ;
public static readonly ShaderKeyword LocalShadows = new ShaderKeyword ( LocalShadowsText ) ;
public static readonly ShaderKeyword SoftShadows = new ShaderKeyword ( SoftShadowsText ) ;
}
public partial class LightweightPipeline
if ( pipelineAsset . IsLocalShadowsSupported )
pipelineCapabilities | = PipelineCapabilities . LocalShadows ;
bool anyShadows = pipelineAsset . IsDirectionalShadowsSupported | | pipelineAsset . IsLocalShadowsSupported ;
if ( pipelineAsset . IsSoftShadowsSupported & & anyShadows )
pipelineCapabilities | = PipelineCapabilities . SoftShadows ;
}
}
}