This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:raytype_comp [2019/01/23 00:54] – [Ray Type controls] lightwolf | tools:raytype_comp [2020/04/30 21:33] (current) – [Check for] lightwolf | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ray Type Comparison | + | ====== Ray Type Comparison ====== |
- | Thus node is only available in a node editor context where raytracing is available. It will check the current (incoming) ray for specific properties and return true if they match. | + | {{ : |
- | ===== User Interface | + | This node is only available in a node editor context where raytracing is available. It will check the current (incoming) ray for specific properties and return true if they match. |
+ | |||
+ | The incoming ray is the ray evaluating the current surface spot. | ||
+ | |||
+ | ===== Controls ===== | ||
==== Pass-through ==== | ==== Pass-through ==== | ||
Line 13: | Line 17: | ||
These two columns are ray properties to check for. The first column depends on the type of ray, the second column covers additional properties. | These two columns are ray properties to check for. The first column depends on the type of ray, the second column covers additional properties. | ||
- | * Reflection | + | The types of ray are mutually exclusive. A ray can only be one of these types, but not a combination of them: |
- | * Refraction | + | |
- | * Dissolve | + | |
- | * Shadow | + | |
- | * Occlusion | + | |
- | * Pre-Process | + | * **Reflection** The current spot is shaded for a reflection. |
- | * Volumetric | + | * **Refraction** The current spot is shaded for a refraction. |
- | * Radiosity | + | * **Dissolve** The current spot is shaded for a dissolved item. |
- | * Caustics | + | * **Shadow** The current spot is shaded for a shadow ray. |
- | * Camera | + | * **Occlusion** The current spot is shaded for an occlusion. |
- | * Sampled | + | |
+ | The additional properties may be combined. For example, a ray may be a Pre-Process | ||
+ | |||
+ | | ||
+ | * **Volumetric** This ray is evaluating volumetrics. | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
==== Check for ==== | ==== Check for ==== | ||
+ | |||
+ | * **Some** Checks if any of the ray types and properties are set. | ||
+ | * **All** Checks if all of the ray types and properties are set. Please note, this will only return a result if, at most, one of the ray types is set. Because a ray will never have more than one type. | ||
+ | * **None** This is the opposite of **Some** and will only return true if none of the types and properties are set for the current ray. | ||
+ | |||
==== Invert Check ==== | ==== Invert Check ==== | ||
+ | |||
+ | This just inverts the result of the check from true to false and vice versa. | ||
==== Boolean Operator ==== | ==== Boolean Operator ==== | ||
+ | |||
+ | This control is only available if the Boolean input is connected. It will cause the value of the Boolean input to be combined with the result of the ray type check using Boolean Logic as explained [[tools: | ||
==== Invert Output ==== | ==== Invert Output ==== | ||
+ | | ||
+ | ===== Connections ===== | ||
+ | {{ : | ||
+ | |||
+ | ==== Boolean ==== | ||
+ | |||
+ | This allows you to connect another boolean value to this node. | ||
+ | |||
+ | If this input is connected, you can use [[# | ||
+ | |||
+ | ==== Ray Type ==== | ||
+ | |||
+ | An alternative way to input a specific ray type into the node. Usually the node will fetch the ray type from the current context, so it's not needed. | ||
+ | |||
+ | ==== Boolean (Output) ==== | ||
+ | |||
+ | Either 0 if the result of all operations is false, or 1 if it is true. | ||
+ | |||
---- | ---- | ||
[[https:// | [[https:// | ||
- | This is the plugin of the month for November 2018, made possible by the finest patrons on [[https:// | + | This is the plugin of the month for January 2019, made possible by the finest patrons on [[https:// |