Overte C++ Documentation
FadeEffect.h
1 //
2 // FadeEffect.h
3 
4 // Created by Olivier Prat on 17/07/2017.
5 // Copyright 2017 High Fidelity, Inc.
6 //
7 // Distributed under the Apache License, Version 2.0.
8 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
9 //
10 
11 #ifndef hifi_render_utils_FadeEffect_h
12 #define hifi_render_utils_FadeEffect_h
13 
14 #include <render/Engine.h>
15 
16 class FadeEffect {
17 public:
18  using JobModel = render::Task::Model<FadeEffect>;
19 
20  FadeEffect();
21 
22  void build(JobModel& task, const render::Varying& inputs, render::Varying& outputs);
23 
24  static render::ShapePipeline::BatchSetter getBatchSetter();
25  static render::ShapePipeline::ItemSetter getItemUniformSetter();
26 
27 private:
28  static gpu::TexturePointer _maskMap;
29 };
30 
31 #endif // hifi_render_utils_FadeEffect_h