Player display of non-playable source

Show also non-playable sources to allow testing pre- post-display. Show post-processed image only if source made changes.
This commit is contained in:
Bruno Herbelin
2022-06-21 01:37:30 +02:00
parent 452221daa5
commit f2405e02f6
5 changed files with 121 additions and 165 deletions

View File

@@ -643,6 +643,15 @@ float Source::alpha() const
return blendingShader()->color.a;
}
bool Source::textureTransformed () const
{
return frame()->projectionArea() != glm::vec2(1.f) || // cropped
group(View::TEXTURE)->rotation_.z != 0.f || // rotation
group(View::TEXTURE)->scale_ != glm::vec3(1.f) || // scaled
group(View::TEXTURE)->translation_ != glm::vec3(0.f);// displaced
}
void Source::call(SourceCallback *callback, bool override)
{
if (callback != nullptr) {