Fix transparent items not being rendered correctly against procedural skybox

This commit is contained in:
Ryan Huffman 2016-08-15 16:35:25 -07:00
parent 8fdecc6e56
commit 1d2ea3be03

View file

@ -64,12 +64,6 @@ QJsonValue Procedural::getProceduralData(const QString& proceduralJson) {
}
Procedural::Procedural() {
_opaqueState->setCullMode(gpu::State::CULL_NONE);
_opaqueState->setDepthTest(true, true, gpu::LESS_EQUAL);
_opaqueState->setBlendFunction(false,
gpu::State::SRC_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::INV_SRC_ALPHA,
gpu::State::FACTOR_ALPHA, gpu::State::BLEND_OP_ADD, gpu::State::ONE);
_transparentState->setCullMode(gpu::State::CULL_NONE);
_transparentState->setDepthTest(true, true, gpu::LESS_EQUAL);
_transparentState->setBlendFunction(true,