Apply the shader effect to only one scene object

  • #1, by red363Wednesday, 20. July, 01:31 3 weeks ago

    Tell me, please, is it possible to apply the shader effect to only one scene object?

    I tried using this script from Afrlme

    function setObjectEffect(eff)
     bind(eff, "time", field("shader_iTime"))
     shaderSetOptions({{shader = shader_effects[eff].num(), comp_dst=5, comp_src=4 }}, 1)

    But for some reason it doesn't work for me (Visionaire version,
    the object to which I apply is simply not displayed (smeared with a black square).



    71 Posts

  • #2, by afrlmeWednesday, 20. July, 12:49 3 weeks ago
    That thread is really old & I don't know if the shader toolkit still works that way. Also you need to make sure you include the latest version of the shader toolkit as a definition script in your project, because if you are using an older version it may not work correctly.

    You can always find the most recent version here.


    7158 Posts

Write post