/// <summary> /// Gets if the Absolute value should be used before using the LUT for each Input. /// </summary> /// <returns></returns> public PICACommand.fragmentSamplerAbsolute getReflectanceSamplerAbsolute() { PICACommand.fragmentSamplerAbsolute output = new PICACommand.fragmentSamplerAbsolute(); uint value = getParameter(PICACommand.lutSamplerAbsolute); output.r = (value & 0x2000000) == 0; output.g = (value & 0x200000) == 0; output.b = (value & 0x20000) == 0; output.d0 = (value & 2) == 0; output.d1 = (value & 0x20) == 0; output.fresnel = (value & 0x2000) == 0; return(output); }
/// <summary> /// Gets if the Absolute value should be used before using the LUT for each Input. /// </summary> /// <returns></returns> public PICACommand.fragmentSamplerAbsolute getReflectanceSamplerAbsolute() { PICACommand.fragmentSamplerAbsolute output = new PICACommand.fragmentSamplerAbsolute(); uint value = getParameter(PICACommand.lutSamplerAbsolute); output.r = (value & 0x2000000) == 0; output.g = (value & 0x200000) == 0; output.b = (value & 0x20000) == 0; output.d0 = (value & 2) == 0; output.d1 = (value & 0x20) == 0; output.fresnel = (value & 0x2000) == 0; return output; }