RB.EffectShader
Method - Static
Parameters
Returns
Nothing.
Description
Set a custom post-processing effect shader which was previously created with ShaderAsset.Load. Using this method any post-processing effect can be created which takes the RetroBlit display as input, and any other inputs provided by RetroBlit shader methods.
Note that some RetroBlit built-in shaders will not work if a custom shader is specified, because they themselves are created by a built-in RetroBlit shader which will be replaced by a call to RB.EffectShader. To revert back to the built-in shader call RB.EffectReset.
See Assets/RetroBlit/Internal/Materials/PresentBasicShader.shader for an example of a minimal present shader, and Assets/RetroBlit/Resources/Demos/DemoReel/PresentRippleShader.shader for a simple ripple-effect shader.
Example
See Also
RB.EffectSet
RB.EffectFilter
RB.EffectReset
RB.EffectApplyNow
See Docs
Features - Post-Processing Effects
Features - Post-Processing Shaders
|