Hotfix for audio reactivity
This commit is contained in:
@@ -386,7 +386,12 @@ Item
|
|||||||
live: Qt.binding(() => { return isLive(); })
|
live: Qt.binding(() => { return isLive(); })
|
||||||
smooth: true
|
smooth: true
|
||||||
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
||||||
wrapMode: ShaderEffectSource.ClampToEdge
|
wrapMode: Qt.binding(() => {
|
||||||
|
if(channel.iChannel0 === undefined || channel.iChannel0.type === ShaderChannel.Audio)
|
||||||
|
return ShaderEffectSource.ClampToEdge;
|
||||||
|
else
|
||||||
|
return ShaderEffectSource.Repeat;
|
||||||
|
})
|
||||||
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
||||||
textureMirroring: ShaderEffectSource.NoMirroring
|
textureMirroring: ShaderEffectSource.NoMirroring
|
||||||
recursive: true
|
recursive: true
|
||||||
@@ -414,7 +419,12 @@ Item
|
|||||||
live: Qt.binding(() => { return isLive(); })
|
live: Qt.binding(() => { return isLive(); })
|
||||||
smooth: false
|
smooth: false
|
||||||
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
||||||
wrapMode: ShaderEffectSource.Repeat
|
wrapMode: Qt.binding(() => {
|
||||||
|
if(channel.iChannel1 === undefined || channel.iChannel1.type === ShaderChannel.Audio)
|
||||||
|
return ShaderEffectSource.ClampToEdge;
|
||||||
|
else
|
||||||
|
return ShaderEffectSource.Repeat;
|
||||||
|
})
|
||||||
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
||||||
textureMirroring: ShaderEffectSource.NoMirroring
|
textureMirroring: ShaderEffectSource.NoMirroring
|
||||||
recursive: true
|
recursive: true
|
||||||
@@ -428,6 +438,8 @@ Item
|
|||||||
|
|
||||||
function isLive()
|
function isLive()
|
||||||
{
|
{
|
||||||
|
return true;
|
||||||
|
|
||||||
if(channel.iChannel1 === undefined)
|
if(channel.iChannel1 === undefined)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -442,7 +454,12 @@ Item
|
|||||||
live: Qt.binding(() => { return isLive(); })
|
live: Qt.binding(() => { return isLive(); })
|
||||||
smooth: false
|
smooth: false
|
||||||
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
||||||
wrapMode: ShaderEffectSource.Repeat
|
wrapMode: Qt.binding(() => {
|
||||||
|
if(channel.iChannel2 === undefined || channel.iChannel2.type === ShaderChannel.Audio)
|
||||||
|
return ShaderEffectSource.ClampToEdge;
|
||||||
|
else
|
||||||
|
return ShaderEffectSource.Repeat;
|
||||||
|
})
|
||||||
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
||||||
textureMirroring: ShaderEffectSource.NoMirroring
|
textureMirroring: ShaderEffectSource.NoMirroring
|
||||||
recursive: true
|
recursive: true
|
||||||
@@ -470,7 +487,12 @@ Item
|
|||||||
live: Qt.binding(() => { return isLive(); })
|
live: Qt.binding(() => { return isLive(); })
|
||||||
smooth: false
|
smooth: false
|
||||||
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
sourceRect: sourceItem ? Qt.rect(0,0, sourceItem.width, sourceItem.height) : Qt.rect(0,0,0,0)
|
||||||
wrapMode: ShaderEffectSource.Repeat
|
wrapMode: Qt.binding(() => {
|
||||||
|
if(channel.iChannel1 === undefined || channel.iChannel1.type === ShaderChannel.Audio)
|
||||||
|
return ShaderEffectSource.ClampToEdge;
|
||||||
|
else
|
||||||
|
return ShaderEffectSource.Repeat;
|
||||||
|
})
|
||||||
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
textureSize: Qt.size(channel.iResolution.x, channel.iResolution.y)
|
||||||
textureMirroring: ShaderEffectSource.NoMirroring
|
textureMirroring: ShaderEffectSource.NoMirroring
|
||||||
recursive: true
|
recursive: true
|
||||||
|
|||||||
Reference in New Issue
Block a user