Exemplo n.º 1
0
SamplerState::SamplerState()
{
    memset(this, 0, sizeof(SamplerState));

    setMinFilter(GL_NEAREST_MIPMAP_LINEAR);
    setMagFilter(GL_LINEAR);
    setWrapS(GL_REPEAT);
    setWrapT(GL_REPEAT);
    setWrapR(GL_REPEAT);
    setMaxAnisotropy(1.0f);
    setMinLod(-1000.0f);
    setMaxLod(1000.0f);
    setCompareMode(GL_NONE);
    setCompareFunc(GL_LEQUAL);
    setSRGBDecode(GL_DECODE_EXT);
}
Exemplo n.º 2
0
void Sampler::setWrap(GLint wraps_, GLint wrapt_, GLint wrapr_)
{
    setWrapS(wraps_);
    setWrapT(wrapt_);
    setWrapR(wrapr_);
}