Skip to content

Commit

Permalink
Outline Pass Algorithm
Browse files Browse the repository at this point in the history
1. Draw Non Selected objects in the depth buffer
2. Make non selected objects invisible, and draw only the selected objects, by comparing the depth buffer of non selected objects. Write a mask here for visible and hidden edges.
3. Downsample the Mask buffer to half
4. Edge detect the half res buffer, with different colors to hidden and visible edges.
5. Blur the edges of half res/quarter res buffer(quarter res is used for edge glow)
6. Add the blurred edges on top of original scene using the full res mask buffer
  • Loading branch information
Prashant Sharma authored and Prashant Sharma committed Jul 26, 2016
1 parent 5ded961 commit 94a35ce
Show file tree
Hide file tree
Showing 4 changed files with 919 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ var files = {
"webgl_postprocessing_msaa",
"webgl_postprocessing_msaa_unbiased",
"webgl_postprocessing_nodes",
"webgl_postprocessing_outline",
"webgl_postprocessing_procedural",
"webgl_postprocessing_smaa",
"webgl_postprocessing_ssao",
Expand Down

1 comment on commit 94a35ce

@bhouston
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title of example says Sao.

Please sign in to comment.