intensity on blur and blurmask effects

This forum is currently in read-only mode.
From the Asset Store
Wind effect
$2.49 USD
Animated wind effect for objects, grass, trees, etc.
  • title self explanatory

  • I modified the two regular blur shaders to take a floating point value(.1, .2, .3, etc...) for the blur intensity. Default is 1. Anything higher than that start to look pixelated, so 2 is the highest I'd go.

    Modified Blur Shaders (Edit by Ashley: please rename these files before copying them in to your Construct folder - don't overwrite the originals - to avoid compatibility problems)

    The blur mask shaders already support intensity. The intensity is based off the lightness of the sprite. A completely white sprite is the highest blur intensity, gray in the middle, and black is no blur at all.

  • Please, if you modify shaders, call them something different, or we'll end up with horrible compatibility issues (it'll probably crash if you make an event setting an effect parameter, and send it to someone with the non-modified shader).

    The problem with that modification is blur intensities less than 1 waste processing time, because more samples than necessary to achieve the effect are made. Above it and yes, you get weird aliasing errors. That's why there's been no blur intensity built in. It's possible to do a cheap, quick blur, which is *much* faster than the blur shaders (atm theyre the slowest shaders), but I need to make runtime modifications to make it possible.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks linkman!

    I forgot I even posted this thread

    I'll make sure to rename them ashley

    btw, on the blurmask I know about the white to black to affect intensity

    I just was wondering if it's possible to make the white be a higher maximum bluriness amount

    I tried using blurmask twice on the same object, but then it's blurry even if theres black or alpha 0 there

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)