Game Development Reference
In-Depth Information
Type
Description
float3 worldRe-
fl;
INTERNAL_DATA
This will contain the world reflection vector if the surface shader writes to
o.Normal
. To get the reflection vector
based on per-pixel normal map, use
WorldReflectionVector (IN, o.Normal)
. See the Reflect-Bumped
shader for example.
float3
worldNormal;
INTERNAL_DATA
This will contain the world normal vector if the surface shader writes to
o.Normal
. To get the normal vector based on
per-pixel normal map, use
WorldNormalVector (IN, o.Normal)
.