Difference between revisions of "EffectShader"

1,085 bytes added ,  04:25, 22 January 2017
→‎Fill / Texture Effect: prose explanation; this is only tested for edge effects but should be consistent for fills
imported>DavidJCobb
imported>DavidJCobb
(→‎Fill / Texture Effect: prose explanation; this is only tested for edge effects but should be consistent for fills)
Line 114: Line 114:


''Alpha Pulse Frequency''
''Alpha Pulse Frequency''
:: How often the shader exhibits a pulse. It may be easier to consider that the period of any given pulse would be 1 second divided by the frequency of the pulses (i.e. larger values give shorter pulses, decimal values below 1 give longer pulses).  
:: How often the shader exhibits a pulse. It may be easier to consider that the period of any given pulse would be 1 second divided by the frequency of the pulses (i.e. larger values give shorter pulses, decimal values below 1 give longer pulses).


''Texture Animation Speed (U, V)''
''Texture Animation Speed (U, V)''
Line 120: Line 120:


''Texture Scale (U, V)''
''Texture Scale (U, V)''
:: A larger value will repeat the texture more frequently on the surface of the target object.  
:: A larger value will repeat the texture more frequently on the surface of the target object.
 
{{InDepth|Here's an explanation of the alpha/opacity values for those who find prose easier to understand:
 
When a shader is first applied, it immediately uses ''Full Alpha Ratio'' as its opacity for ''Full Alpha Time''; after that, the shader fades in from ''Full Alpha Ratio'' to ''Persistent Alpha Ratio'' over ''Alpha Fade Out Time''. Over the course of the shader's lifetime (including during fades), the opacity will vary by up to ''Alpha Pulse Ratio'' at a rate of ''Alpha Pulse Frequency'' times per second. When the shader is removed from a reference, it will always fade out from its current opacity to zero over ''Alpha Fade Out Time''.
 
The fade-in behavior changes if the ''Persistent Alpha Ratio'' is greater than the ''Full Alpha Ratio'': in this case, the shader will instantly switch from ''Full Alpha Ratio'' to ''Persistent Alpha Ratio'' at the end of the ''Full Alpha Time''. This is implied by the names of the settings -- "full," as in "maximum," alpha ratio -- but it's still not necessarily what one might expect, and it's definitely the less useful behavior.}}




Anonymous user