Page MenuHome

Eevee hair shader
Needs ReviewPublic

Authored by Mikhail Matrosov (ktdfly) on Mar 12 2021, 9:46 PM.
Tokens
"Love" token, awarded by dlfon99."Love" token, awarded by DerivedC."Like" token, awarded by jbakker."Love" token, awarded by OrOrNil4evr."Love" token, awarded by zNight."Love" token, awarded by alexlashko."Love" token, awarded by Steinn."Love" token, awarded by Ole."Manufacturing Defect?" token, awarded by Galagax."Love" token, awarded by Schamph."Love" token, awarded by 295032.

Details

Summary

Adds Eevee hair shader resembling Cycles' CBTB16.

The same shader applied to mesh.

An example from real life

Blender 2.92 Splash by Joanna Kobierska rendered with Eevee (but w/o DoF)

Why Hair BSDF is better for hair than Principled BSDF?

  • More natural look
  • Simulates hair translucency
  • R, T, TRT and TRRT+ lobes
  • Sun, spots, area and point lights
  • Cast and receive shadows
  • Cubemaps and environment - poorly (depends on specular AO)
  • Screen Space Reflections (SSR) - only for R lobe
  • Specular offset angle
  • Works for mesh
  • Random color
  • Random roughness
  • Coat
  • Reduce noise for thin hair
  • Anisotropic roughness
  • light_diffuse() implementation for hair

Implementation is similar to Glossy, except that reflection directions are chosen according to inner hair reflections.

Diff Detail

Repository
rB Blender

Event Timeline

Mikhail Matrosov (ktdfly) requested review of this revision.Mar 12 2021, 9:46 PM
Mikhail Matrosov (ktdfly) created this revision.
Mikhail Matrosov (ktdfly) created this object with edit policy "Administrators".
Mikhail Matrosov (ktdfly) edited the summary of this revision. (Show Details)
  • TRRT+
  • Partial SSR
  • Removed hair closure in favor of glossy
  • Clear coat
  • Random roughness
Mikhail Matrosov (ktdfly) edited the summary of this revision. (Show Details)
  • Specular offset angle
  • Works for mesh

doesnt appear to be working in 2.93, it builds but shader its just black.

i think you should finish this so that it doesnt fall into obscurity, it would be a shame. once it gets accepted its clements worry to maintain it since he is changing everything all the time even if you update it now its gonna be broken in 2 months