User Tools

Site Tools


This is an old revision of the document!


Occlusion

Brickyard : Functions > Lighting > ray tracing

Returns the highest value (lightest shade of grey) where surfaces are “occluded” by other objects in the scene. Useful as an alpha map for adding grime in the creases of a surface, for example. Can also be used as part of a shader to emulate snow or dust on an upper surface of several objects in a scene, some of which occlude other objects, by supplying an Occlusion Vector.

Snapshot

Parameters

Outputs

  • Occlusion : Float - Description…
  • Avg Environmental Direction : Vector - Description…

Inputs

  • Occlusion Vector1) : Normal - Description…
  • P2) : Point - Description…
  • Strength : Float - Description…
  • Axis : Vector - Description…
  • Max Distance : Description…
  • Cone Angle : Description…
  • Samples : Description…
  • Bias : Description…

Examples

In a Material


  • An example using occlusion to provide snow : 3)

1) , 2)
Available when Show Advanced is checked in the Brick Option Menu.
3)
courtesy JustTheBast