|
|
|
|
|
|
float depthOffset = ApplyPerPixelDisplacement(input, V, layerTexCoord); |
|
|
|
|
|
|
|
#ifdef _DEPTHOFFSET_ON |
|
|
|
ApplyDepthOffsetPositionInput(GetCameraForwardDir(), depthOffset, GetWorldToHClipMatrix(), posInput); |
|
|
|
ApplyDepthOffsetPositionInput(V, depthOffset, GetWorldToHClipMatrix(), posInput); |
|
|
|
#endif |
|
|
|
|
|
|
|
// We perform the conversion to world of the normalTS outside of the GetSurfaceData |
|
|
|
|
|
|
float depthOffset = ApplyPerPixelDisplacement(input, V, layerTexCoord); |
|
|
|
|
|
|
|
#ifdef _DEPTHOFFSET_ON |
|
|
|
ApplyDepthOffsetPositionInput(GetCameraForwardDir(), depthOffset, GetWorldToHClipMatrix(), posInput); |
|
|
|
ApplyDepthOffsetPositionInput(V, depthOffset, GetWorldToHClipMatrix(), posInput); |
|
|
|
#endif |
|
|
|
|
|
|
|
SurfaceData surfaceData0, surfaceData1, surfaceData2, surfaceData3; |
|
|
|