The pxSparkle plug-in generates a sparkle pattern as a ray emitting from a point. The pxSparkle editor provides options to control the density of the rays, the x,y position from where they are emitted, the brightness (Amount) of rays, as well as other parameters, which is covered specifically in context. Before delving into these parameters however, it is important to understand the pxSparkle, like other PixelFX shaders (pxGradient, pxNoise) generates its own pixels. It also has the ability to be applied on top of an image and can blend with the image’s pixels.
Note: This plug-in is located in: Plugins -> Shader -> PixelFX
When pxSparkle is applied to a container without an image, it creates sparkle results. You can also apply it on a container with an image. In this case, you need to decide whether the sparkle pattern should blend on top of the image or whether it cuts the image. If the Cut Image option is on, the host image is seen only in areas that are brighter than zero. The brighter the sparkle, the more apparent the host image is.
pxSparkle can be used as a flare to achieve its effect in a radius (the size of the hot spot). The Inner Amount (the brightness of the hot spot) and the Radius crops or fades the sparkle radially. You can also set the Speed parameter to set the sparkle in motion.
Transform as texture: Forces the rendering of the sparkle to ignore the viewmatics. The sparkle is always facing the eye-point. This option is handy when applying the sparkle on top of a hierarchy.
Aspect: Set the proportion of the sparkle independently of the texture transformation. Often, you stretch textures to get what you want. When applying pxSparkle to a distorted texture, you may want to maintain its roundness. You can use this parameter to compensate for the texture distortion.
Angle: Rotates the sparkle without manipulating the texture coordinates. This option is handy when you have a static image on top of which you want to apply a rotating sparkle.