1 #ifndef VTESTBED_GRAPHICS_GERSTNERSHADER_HH 2 #define VTESTBED_GRAPHICS_GERSTNERSHADER_HH 5 #include <vtestbed/graphics/types.hh> 14 typedef Magnum::GL::Attribute<0, Vector3> Position;
30 setTransformationProjectionMatrix(
const Matrix4& matrix) {
31 setUniform(Matrix, matrix);
35 bindTexture(Texture2D& texture) {
36 texture.bind(TextureLocation);
40 setSlice(
const Vector2& vect) {
41 setUniform(Slice, vect);
45 showSlice(
bool value) {
46 setUniform(ShowSlice, value);
50 setMaxWave(
float maxWave) {
51 setUniform(MaxWave, maxWave);
60 #endif // vim:filetype=cpp