Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Graphics 2.0 crash with 2014.2432
Started by hayk Sep 19 2014 03:08 AM

No replies to this topic
graphics 2.0 bug
[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

hayk

[GLOBAL: userInfoPane.html]
hayk
  • Enthusiast

  • 51 posts
  • Corona SDK

Hello, I am trying to create new effect by combining existing ones and Corona Simulator crashes.
Here is my code.

graphics.defineEffect({
    language = "glsl",
    category = "filter",
    name = "myEffect",
    graph = {
        gray = { effect = "filter.grayscale", input1 = "paint1" },
        --final = { effect = "filter.contrast", input1 = "gray" },
    },
    output = "gray"
});

local rect = display.newRect(100, 100, 100, 100);
rect:setFillColor(1, 0, 0);
rect.fill.effect = "filter.myEffect";

Also question about arguments for filter. How can I specify arguments for filter contrast in this sample?

Thank you




[topic_controls]
[/topic_controls]