@@ -31,11 +31,11 @@ public sealed class Bloom : PostProcessEffectSettings
3131 [ Tooltip ( "Boost performances by lowering the effect quality. This settings is meant to be used on mobile and other low-end platforms." ) ]
3232 public BoolParameter mobileOptimized = new BoolParameter { value = false } ;
3333
34- [ Tooltip ( "Dirtiness texture to add smudges or dust to the lens ." ) , DisplayName ( "Texture" ) ]
35- public TextureParameter lensTexture = new TextureParameter { value = null } ;
34+ [ Tooltip ( "Dirtiness texture to add smudges or dust to the bloom effect ." ) , DisplayName ( "Texture" ) ]
35+ public TextureParameter dirtTexture = new TextureParameter { value = null } ;
3636
37- [ Min ( 0f ) , Tooltip ( "Amount of lens dirtiness." ) , DisplayName ( "Intensity" ) ]
38- public FloatParameter lensIntensity = new FloatParameter { value = 0f } ;
37+ [ Min ( 0f ) , Tooltip ( "Amount of dirtiness." ) , DisplayName ( "Intensity" ) ]
38+ public FloatParameter dirtIntensity = new FloatParameter { value = 0f } ;
3939
4040 public override bool IsEnabledAndSupported ( PostProcessRenderContext context )
4141 {
@@ -151,7 +151,7 @@ public override void Render(PostProcessRenderContext context)
151151
152152 var linearColor = settings . color . value . linear ;
153153 float intensity = RuntimeUtilities . Exp2 ( settings . intensity . value / 10f ) - 1f ;
154- var shaderSettings = new Vector4 ( sampleScale , intensity , settings . lensIntensity . value , iterations ) ;
154+ var shaderSettings = new Vector4 ( sampleScale , intensity , settings . dirtIntensity . value , iterations ) ;
155155
156156 // Debug overlays
157157 if ( context . IsDebugOverlayEnabled ( DebugOverlay . BloomThreshold ) )
@@ -167,9 +167,9 @@ public override void Render(PostProcessRenderContext context)
167167 // Lens dirtiness
168168 // Keep the aspect ratio correct & center the dirt texture, we don't want it to be
169169 // stretched or squashed
170- var dirtTexture = settings . lensTexture . value == null
170+ var dirtTexture = settings . dirtTexture . value == null
171171 ? RuntimeUtilities . blackTexture
172- : settings . lensTexture . value ;
172+ : settings . dirtTexture . value ;
173173
174174 var dirtRatio = ( float ) dirtTexture . width / ( float ) dirtTexture . height ;
175175 var screenRatio = ( float ) context . width / ( float ) context . height ;
0 commit comments