Reflection (Background) Shader

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • This is a fairly simple shader I created in response to this thread:
    Please login to see this link.


    Unfortunately, I do not know how to create a background shader that uses alpha blending to blend with the same background. This merely reflects the background- but thats still pretty handy.

    If anyone with the technical knowledge knows how to blend a background (ie to make this object semitransparent) please, feel free to alter this shader and post it up!


    Parameters:
    fCoeff:
    Ratio of 0.0 to 1.0 of the image to be reflected. Only one side of this line will be reflected, proportional to how far down it is- in the exact middle (0.5), it creates a 1:1 reflection, whereas at say 0.75, it will be a 3:1 reflection
    Mode:
    Changes the direction of the reflection.
    0 = Bottom
    1 = Top
    2 = Left
    3 = Right


    Example screenshot:
    Please login to see this picture.


    (Put the effects in your "MMF2/Effect" folder, and then you can access them inside your project. You will need to put the effects in that folder in order to open the example file)

  • With the help of Looki, I've updated this shader:
    Please login to see this link.

    It nows has an additional parameter, fBlend
    This is a value from 0.0 to 1.0
    0.0 = Fully Opaque (all reflection)
    1.0 = Fully Transparent (no visible effect)


    This allows it to render semitransparent backgrounds, making it perfect for 'water' effects in a game- simply use an object overlaying the water, and give it this effect.

    Please login to see this picture.

    Updated Download is attached
    This has been edited since V2
    Now reflects Dyna's code from the post below :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!