Beispiel #1
0
void Shader::loadShaderFromFiles(const string& vsFilename,const string& fsFilename)
{
    GLuint vertexShader=loadShaderFromFile(vsFilename,VERTEX_SHADER);
    setVertexShader(vertexShader);

    GLuint fragmentShader=loadShaderFromFile(fsFilename,FRAGMENT_SHADER);
    setFragmentShader(fragmentShader);
}
Beispiel #2
0
void CustomEffect::setHasPeriodicCopies(bool hasPeriodicCopies)
{
    if(m_periodicCopiesAllowed) {
        m_hasPeriodicCopies = hasPeriodicCopies;
        setFragmentShader("");
    } else {
        m_hasPeriodicCopies = false;
    }
}
Beispiel #3
0
void Debri::init( int ind ) {
    tex_epsilon = DEFAULT_TEX_EPS;
    setIndex(ind);
    if( index < 13*16 ) setScl(PPC*0.6); else setScl(PPC);
    falling_to_pit = false;
    if( ind == B_ATLAS_ITEM_DARK_MATTER_PARTICLE ) {
        setFragmentShader( g_eye_col_replacer );
    }
}