561048d416fd0241af4e4bac1c9edc34e9a4c1e3
[movit] / sandbox_effect.cpp
1 #include <math.h>
2 #include <assert.h>
3
4 #include "sandbox_effect.h"
5 #include "util.h"
6 #include "opengl.h"
7
8 SandboxEffect::SandboxEffect()
9         : parm(0.0f)
10 {
11         register_float("parm", &parm);
12 }
13
14 std::string SandboxEffect::output_fragment_shader()
15 {
16         return read_file("sandbox_effect.frag");
17 }
18
19 void SandboxEffect::set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num)
20 {
21         Effect::set_gl_state(glsl_program_num, prefix, sampler_num);
22
23         // Any OpenGL state you might want to set, goes here.
24 }