Options
All
  • Public
  • Public/Protected
  • All
Menu

Module exprs/depthtoocclusionexpr

Index

Functions

depth2occlusion

  • converts a 1 / distance depth texture to an occlusion texture, with all occluded geometry being rendered as black

    Parameters

    • depthCol: Vec4

      the color representing the inverse depth (defaults to sampling from channel 0)

    • newCol: Vec4

      the color to replace unoccluded areas by (defaults to white and is mutable by default)

    • threshold: Float | number

      values below this are not occluded (set to something low, like 0.1 or lower; defaults to 0.01 and is mutable by default)

    Returns DepthToOcclusionExpr

Generated using TypeDoc