Shader effect

Introduction

Shader effect of camera.

  • Author: Richard Davey

Usage

Setup

  1. Add render pipeline instance
  2. Add filter
    camera.setRenderToTexture(pipelineName);
    
    • pipelineName :
      • A string : Name of this render pipeline
      • A pipeline instance
  3. Set properties of piepline instance

Other methods

  • Change filter
    camera.setPipeline(pipelineName);
    
    or
    camera.setPipeline(filter);
    
    • pipelineName : Name of this render pipeline, a string.
  • Clear filter
    camera.clearRenderToTexture();