reflectVector
Provides a pre-calculated world-space reflection vector, specifically for environment map sampling, greatly simplifying the creation of mirror-like reflection effects.
Core Advantages
Encapsulates the complex view-space to world-space coordinate transformation into a single node, allowing developers to implement environment reflections with a single line of code without worrying about the underlying calculations.
Common Uses
Creating standard environment maps (e.g., skybox reflections).
Providing the sampling direction for dynamic reflection probes.
Used as a color output to visually debug normals or reflection directions.
How to adjust
This node itself is not adjustable, but its result is affected by the material's `normalNode`. By connecting a normal map node to `normalNode`, you can alter the surface detail of the reflection, simulating effects from a smooth mirror to a rough surface.
Code Examples
1envMapNode.uv( TSL.reflectVector )