Class LensFlareDataElementSRP
LensFlareDataElementSRP defines collection of parameters describing the behavior a Lens Flare Element.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public sealed class LensFlareDataElementSRP
Constructors
Name | Description |
---|---|
Lens |
Initialize default values |
Fields
Name | Description |
---|---|
allow |
Enable multiple elements |
angular |
Angular offset |
auto |
Rotate the texture relative to the angle on the screen (the rotation will be added to the parameter 'rotation') |
blend |
Blend mode used |
color |
Colors used uniformly for Uniform or Curve Distribution and Random when the distribution is 'Random'. |
distortion |
Curve blending from screen center to the edges of the screen. |
distortion |
If true the distortion is relative to center of the screen otherwise relative to lensFlare source screen position. |
distribution | SRPLensFlareDistribution defined how we spread the flare element when count > 1 |
enable |
True to use or not the radial distortion. |
flare |
FlareType used |
inverse |
Inverse the gradient direction. |
length |
Length to spread the distribution of flares, spread start at 'starting position' |
lens |
Texture used to for this Lens Flare Element |
modulate |
Modulate by light color if the asset is used in a 'SRP Lens Flare Source Override' |
position | Position |
position |
Curve describing how to place flares distribution (Used only for Uniform and Curve 'distribution') |
position |
Position offset |
position |
Scale factor applied on the variation of the positions. |
preserve |
Preserve Aspect Ratio |
rotation | Local rotation of the texture |
rotation |
Scale factor applied on the variation of the rotation (relative to the current rotation or auto-rotate). |
scale |
Curve describing how to scale flares distribution (Used only for Uniform and Curve 'distribution') |
scale |
Coefficient applied on the variation of the scale (relative to the current scale). |
seed | Seed used to seed randomness |
size |
Scale size on each dimension |
target |
Target size used on the edge of the screen. |
tint | Tint of the texture can be modulated by the light we are attached to |
translation |
Translation Scale |
uniform |
Uniform angle (in degrees) used with multiple element enabled with Uniform distribution. |
uniform |
Uniform angle (remap from -180.0f to 180.0f) used with multiple element enabled with Curve distribution. |
uniform |
Uniform scale applied |
visible | Visibility checker for current element |
Properties
Name | Description |
---|---|
count | Element can be repeated 'count' times |
edge |
Gradient Offset used for the Procedural Flare. |
fall |
Fall of the gradient used for the Procedural Flare. |
intensity |
Scale factor applied on the variation of the intensities. |
local |
Intensity of this element |
sdf |
Roundness of the polygon flare (0: Sharp Polygon, 1: Circle). |
side |
Side count of the regular polygon generated. |