
#ifndef TSH_RIPPLE_H_INCLUDED
#define	TSH_RIPPLE_H_INCLUDED

/*
OBJET       effet d'une onde simple sur une surface

DATE        08/2024

AUTEUR      philippe Thebaud

COMMENTAIRE
*/

#include "../ECO/shader/OShader.h"



class Tsh_ripple : public OShader
{
public:

    Tsh_ripple();

    bool        create();

    void        setVP(const OMat4& vp);
    void        setModel(const OMat4& model);
    void        setTexture(uint32_t texture);
    void        setTime(float value);

    void        setAmbient(float value);
    void        setCircle_center(float x, float y);
    void        setCircle_border(float value);
    void        setCircle_color(OVec4_f& color);
    void        setCircle_color(float r, float g, float b, float a);

private:

    uint32_t    m_vp, m_model;
    //uint32_t    m_multi;
    uint32_t    m_colorMap;
    uint32_t    m_time;
    uint32_t    m_ambient;
    uint32_t    m_circle_center, m_circle_border, m_circle_color;
};

#endif

