1. Hey! Guest! The 35th GMC Jam will take place between November 28th, 12:00 UTC - December 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Shaders How is the shader added to the layer?

Discussion in 'Programming' started by ltzibaozhe, Nov 10, 2019.

  1. ltzibaozhe

    ltzibaozhe Member

    Joined:
    Mar 16, 2018
    Posts:
    11
    Hello everyone!
    I found an "overlay" blend mode shader (simulating Photoshop's blending effect) it's great! But there is a fatal problem. It's in full screen and can't be added to the specified layer, it follows the camera movement, which drives me crazy...
    (I need the Blendmode effect. I have tried using gpu_set_blendmode_ext(bm_dest_colour, bm_dest_colour) but not good)
    I am a beginner and need some help and advice. This is my test file.https://1drv.ms/u/s!AlT3jyrarIBic_GUXsP0aIub1mI?e=MI4mSY
     

    Attached Files:

  2. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    6,984
  3. ltzibaozhe

    ltzibaozhe Member

    Joined:
    Mar 16, 2018
    Posts:
    11
    No effect, maybe I have errors using uniform. . I feel this shader is a bit special. . But you let me know the layer_script_begin method, Thank you man !
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice