|
|
|
|
|
|
void GetSurfaceAndBuiltinData(FragInputs input, float3 V, inout PositionInputs posInput, out SurfaceData surfaceData, out BuiltinData builtinData) |
|
|
|
{ |
|
|
|
#ifdef LOD_FADE_CROSSFADE // enable dithering LOD transition if user select CrossFade transition in LOD group |
|
|
|
LODDitheringTransition(posInput.unPositionSS, unity_LODFade.x, _Time.x); |
|
|
|
LODDitheringTransition(posInput.unPositionSS, unity_LODFade.x); |
|
|
|
#endif |
|
|
|
|
|
|
|
ApplyDoubleSidedFlipOrMirror(input); // Apply double sided flip on the vertex normal |
|
|
|
|
|
|
void GetSurfaceAndBuiltinData(FragInputs input, float3 V, inout PositionInputs posInput, out SurfaceData surfaceData, out BuiltinData builtinData) |
|
|
|
{ |
|
|
|
#ifdef LOD_FADE_CROSSFADE // enable dithering LOD transition if user select CrossFade transition in LOD group |
|
|
|
LODDitheringTransition(posInput.unPositionSS, unity_LODFade.x, _Time.x); |
|
|
|
LODDitheringTransition(posInput.unPositionSS, unity_LODFade.x); |
|
|
|
#endif |
|
|
|
|
|
|
|
ApplyDoubleSidedFlipOrMirror(input); // Apply double sided flip on the vertex normal |
|
|
|