ShaderInterpreter.Interpreter.PS C# (CSharp) Method

PS() private method

private PS ( PS_IN _In ) : PS_OUT
_In PS_IN
return PS_OUT
        PS_OUT PS( PS_IN _In )
        {
            PS_OUT	Out;
            Out.DiffuseAlbedo = _DiffuseAlbedo;
            if ( _HasDiffuseTexture )
                Out.DiffuseAlbedo = _TexDiffuseAlbedo.Sample( LinearWrap, _In.UV ).xyz;

            //	Out.NormalDistance = _float4( normalize( _In.Normal ), length( _In.Position - _Camera2World[3].xyz ) );	// Store distance
            Out.NormalDistance = _float4( normalize( _In.Normal ), dot( _In.Position - _Camera2World[3].xyz, _Camera2World[2].xyz ) );	// Store Z

            return Out;
        }
Interpreter