How to draw outline without stencil buffer

Step 0.

Let's make an outline material. In this time, not based on stencil buffer.




Step 1.

Setup a additional skeletal mesh.

How to setup(previous post) :
https://gameenginebread.blogspot.com/2017/09/render-skeletal-mesh-with-different.html


Step 2.

 This is the plan.
 - Draw the outlined mesh slightly curved(larger).
 - Useless pixels are removed with depth test.



Step 3.

 This is the material blueprint.













Step 4.

 Adjust the thickness as desired.

More...

 Related post :
https://gameenginebread.blogspot.com/2017/11/screen-space-outlinepost-process.html


Comments

Post a Comment

Popular posts from this blog

Liquid material in a bottle

MatCap material

How to Make Circular Progress Bar(or Rounded Rectangle)