mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
First implementation of image processing shader de-activation for
sources.
This commit is contained in:
@@ -20,7 +20,7 @@ MediaSource::MediaSource() : Source(), path_("")
|
||||
// - textured with original texture from media player
|
||||
// - crop & repeat UV can be managed here
|
||||
// - additional custom shader can be associated
|
||||
mediasurface_ = new Surface(rendershader_);
|
||||
mediasurface_ = new Surface(renderingshader_);
|
||||
|
||||
}
|
||||
|
||||
@@ -60,6 +60,11 @@ uint MediaSource::texture() const
|
||||
return mediaplayer_->texture();
|
||||
}
|
||||
|
||||
void MediaSource::replaceRenderingShader()
|
||||
{
|
||||
mediasurface_->replaceShader(renderingshader_);
|
||||
}
|
||||
|
||||
void MediaSource::init()
|
||||
{
|
||||
if ( mediaplayer_->isOpen() ) {
|
||||
|
||||
Reference in New Issue
Block a user