mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:21:32 +02:00
Merge branch 'master' into hazeOnTransparent
This commit is contained in:
commit
76af59e331
2 changed files with 11 additions and 4 deletions
|
@ -169,7 +169,12 @@ void DrawHaze::run(const render::RenderContextPointer& renderContext, const Inpu
|
||||||
auto hazeStage = args->_scene->getStage<HazeStage>();
|
auto hazeStage = args->_scene->getStage<HazeStage>();
|
||||||
if (hazeStage && hazeStage->_currentFrame._hazes.size() > 0) {
|
if (hazeStage && hazeStage->_currentFrame._hazes.size() > 0) {
|
||||||
model::HazePointer hazePointer = hazeStage->getHaze(hazeStage->_currentFrame._hazes.front());
|
model::HazePointer hazePointer = hazeStage->getHaze(hazeStage->_currentFrame._hazes.front());
|
||||||
batch.setUniformBuffer(HazeEffect_ParamsSlot, hazePointer->getHazeParametersBuffer());
|
if (hazePointer) {
|
||||||
|
batch.setUniformBuffer(HazeEffect_ParamsSlot, hazePointer->getHazeParametersBuffer());
|
||||||
|
} else {
|
||||||
|
// Something is wrong, so just quit Haze
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
batch.setUniformBuffer(HazeEffect_TransformBufferSlot, transformBuffer->getFrameTransformBuffer());
|
batch.setUniformBuffer(HazeEffect_TransformBufferSlot, transformBuffer->getFrameTransformBuffer());
|
||||||
|
@ -178,7 +183,7 @@ void DrawHaze::run(const render::RenderContextPointer& renderContext, const Inpu
|
||||||
if (lightStage) {
|
if (lightStage) {
|
||||||
model::LightPointer keyLight;
|
model::LightPointer keyLight;
|
||||||
keyLight = lightStage->getCurrentKeyLight();
|
keyLight = lightStage->getCurrentKeyLight();
|
||||||
if (keyLight != nullptr) {
|
if (keyLight) {
|
||||||
batch.setUniformBuffer(HazeEffect_LightingMapSlot, keyLight->getLightSchemaBuffer());
|
batch.setUniformBuffer(HazeEffect_LightingMapSlot, keyLight->getLightSchemaBuffer());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -265,8 +265,10 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.grid-item').find('#price-or-edit').find('a').each(function() {
|
$('.grid-item').find('#price-or-edit').find('a').each(function() {
|
||||||
$(this).attr('data-href', $(this).attr('href'));
|
if ($(this).attr('href') !== '#') { // Guard necessary because of the AJAX nature of Marketplace site
|
||||||
$(this).attr('href', '#');
|
$(this).attr('data-href', $(this).attr('href'));
|
||||||
|
$(this).attr('href', '#');
|
||||||
|
}
|
||||||
cost = $(this).closest('.col-xs-3').find('.item-cost').text();
|
cost = $(this).closest('.col-xs-3').find('.item-cost').text();
|
||||||
|
|
||||||
$(this).closest('.col-xs-3').prev().attr("class", 'col-xs-6');
|
$(this).closest('.col-xs-3').prev().attr("class", 'col-xs-6');
|
||||||
|
|
Loading…
Reference in a new issue