Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Contrast Filter on Multi-pass Effects Doesn't Work
Started by Fixdit Apr 25 2014 04:25 AM

No replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Fixdit

[GLOBAL: userInfoPane.html]
Fixdit
  • Enthusiast

  • 86 posts
  • Corona SDK

This is the filter.lua file. I have had 4 nodes, but it still has the same outcome.

 

filter.lua:

local kernel = {}
kernel.language = "glsl"
kernel.category = "filter"
kernel.name = "imageProcess"
kernel.graph =
{
    nodes = {
        contrast = { effect="filter.contrast", input1="paint1" },
        brightness = { effect="filter.brightness", input1="contrast" }
    },
    output = "brightness",
}
return kernel
When the filter is applied to an object, the result will incorporate everything from the filter.lua, but NOT the contrast effect.
 
main.lua:
cameraShape.fill.effect.contrast = 5
cameraShape.fill.effect.brightness.intensity = 0.4

Can anybody see what's going wrong here? All input welcome.

 

Thanks in Advance,

 

Ash

Fixdit

 




[topic_controls]
[/topic_controls]