Package com.castlabs.sdk.viisights.effects

## Class GrainEffect

- java.lang.Object
- - com.castlabs.sdk.viisights.effects.GrainEffect

- All Implemented Interfaces:
    `ShaderInterface`

      public class GrainEffect
      extends Object
      implements ShaderInterface

  Applies film grain effect to video.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `GrainEffect​(float strength)` | Initialize Effect

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `String` | `getShader​(GLSurfaceView mGlSurfaceView)` | Returns Shader code

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GrainEffect

          public GrainEffect​(float strength)

      Initialize Effect
      Parameters:
        `strength` - Float, between 0 and 1. Zero means no distortion, while 1 indicates the maximum amount of adjustment.

  - ### Method Detail

    - #### getShader

          public String getShader​(GLSurfaceView mGlSurfaceView)

      Description copied from interface: `ShaderInterface`
      Returns Shader code
      Specified by:
        `getShader` in interface `ShaderInterface`
      Parameters:
        `mGlSurfaceView` - send this for every shader but this will only be used when the shader needs it.
      Returns:
        complete shader code in C