Jump to content

Changing SSAO strength


Vousk-prod.
 Share

Recommended Posts

The ratio parameter in the constructor can be either a number or an object.

The object can contain two values:

var ratio = {    ssaoRatio : 0.75,    combineRatio : 0.75}

Maybe try playing with the combineRatio, might be what you are looking for. leave the ssaoRatio the same as the ratio you are using now.

Link to comment
Share on other sites

RaananW, I've already played with those values but without noticable effect (maybe I did something wrong).

 

Luaacro, what a great news!

And do you think there is a way, regarding WebGL limitiation, to reduce the "textile effect" that superimposes above whole canvas when activating SSAO ?

Link to comment
Share on other sites

The SSAO uses 2 passes :

- SSAO pass

- Combine pass (that combines the SSAO pass with the original scene color)

 

In

var ratio = {    ssaoRatio : 0.75,    combineRatio : 0.75}

ssaoRatio represents the ratio of the SSAO post-process (that is usually done in a lower ratio)

combineRatio is the the ratio of the Combine post-process.

If you set the ssaoRatio lower than 1.0, you'll win performances

 

In the SSAO pipeline there is 2 blur post-processes : Horizontal and Vertical.

To remove the "textile effect" you can get the blur post-processes using getBlurVPostProcess or getBlurHPostProcess and modify the blur width and/or direction etc :)

Link to comment
Share on other sites

  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...