Exemple #1
0
 /// <summary>Create a new instance by copying values from <paramref name="other"/>.</summary>
 /// <param name="other"></param>
 public AOVRequest(AOVRequest other)
 {
     m_MaterialProperty    = other.m_MaterialProperty;
     m_LightingProperty    = other.m_LightingProperty;
     m_DebugFullScreen     = other.m_DebugFullScreen;
     m_LightFilterProperty = other.m_LightFilterProperty;
 }
Exemple #2
0
 /// <summary>Create a new instance by copying values from <paramref name="other"/>.</summary>
 /// <param name="other"></param>
 public AOVRequest(AOVRequest other)
 {
     m_MaterialProperty     = other.m_MaterialProperty;
     m_LightingProperty     = other.m_LightingProperty;
     m_DebugFullScreen      = other.m_DebugFullScreen;
     m_LightFilterProperty  = other.m_LightFilterProperty;
     m_OverrideRenderFormat = other.m_OverrideRenderFormat;
 }
Exemple #3
0
 /// <summary>State the property to render. In case of several SetFullscreenOutput chained call, only last will be used.</summary>
 /// <param name="lightingProperty">The property to render.</param>
 /// <returns>A ref return to chain calls.</returns>
 public ref AOVRequest SetFullscreenOutput(LightingProperty lightingProperty)
 {
     m_LightingProperty = lightingProperty;
     return(ref *thisPtr);
 }
Exemple #4
0
        public void SetLightingProperty(LightingProperty lightingProperty, float value)
        {


            // Not all effects have all properties. For example, the Specular effects do not have a DiffuseConstant property.
            switch (lightingProperty)
            {
                case LightingProperty.LightPositionZ:
                    _lightPositionZ = value;
                    break;
                case LightingProperty.SpecularConstant:
                    _pointSpecularEffect.SpecularConstant = value;
                    _spotSpecularEffect.SpecularConstant = value;
                    _distantSpecularEffect.SpecularConstant = value;
                    break;
                case LightingProperty.SpecularExponent:
                    _pointSpecularEffect.SpecularExponent = value;
                    _spotSpecularEffect.SpecularExponent = value;
                    _distantSpecularEffect.SpecularExponent = value;
                    break;
                case LightingProperty.DiffuseConstant:
                    _pointDiffuseEffect.DiffuseConstant = value;
                    _spotDiffuseEffect.DiffuseConstant = value;
                    _distantDiffuseEffect.DiffuseConstant = value;
                    break;
                case LightingProperty.Focus:
                    _spotSpecularEffect.Focus = value;
                    _spotDiffuseEffect.Focus = value;
                    break;
                case LightingProperty.LimitingConeAngle:
                    _spotSpecularEffect.LimitingConeAngle = value;
                    _spotDiffuseEffect.LimitingConeAngle = value;
                    break;
                case LightingProperty.Azimuth:
                    _distantSpecularEffect.Azimuth = value;
                    _distantDiffuseEffect.Azimuth = value;
                    break;
                case LightingProperty.Elevation:
                    _distantSpecularEffect.Elevation = value;
                    _distantDiffuseEffect.Elevation = value;
                    break;
                case LightingProperty.SurfaceScale:
                    _pointSpecularEffect.SurfaceScale = value;
                    _spotSpecularEffect.SurfaceScale = value;
                    _distantSpecularEffect.SurfaceScale = value;
                    _pointDiffuseEffect.SurfaceScale = value;
                    _spotDiffuseEffect.SurfaceScale = value;
                    _distantDiffuseEffect.SurfaceScale = value;
                    break;
                default:
            
                    break;
            }

        }
Exemple #5
0
        public void SetLightingProperty(LightingProperty lightingProperty, float value)
        {
            // Not all effects have all properties. For example, the Specular effects do not have a DiffuseConstant property.
            switch (lightingProperty)
            {
            case LightingProperty.LightPositionZ:
                _lightPositionZ = value;
                break;

            case LightingProperty.SpecularConstant:
                _pointSpecularEffect.SpecularConstant   = value;
                _spotSpecularEffect.SpecularConstant    = value;
                _distantSpecularEffect.SpecularConstant = value;
                break;

            case LightingProperty.SpecularExponent:
                _pointSpecularEffect.SpecularExponent   = value;
                _spotSpecularEffect.SpecularExponent    = value;
                _distantSpecularEffect.SpecularExponent = value;
                break;

            case LightingProperty.DiffuseConstant:
                _pointDiffuseEffect.DiffuseConstant   = value;
                _spotDiffuseEffect.DiffuseConstant    = value;
                _distantDiffuseEffect.DiffuseConstant = value;
                break;

            case LightingProperty.Focus:
                _spotSpecularEffect.Focus = value;
                _spotDiffuseEffect.Focus  = value;
                break;

            case LightingProperty.LimitingConeAngle:
                _spotSpecularEffect.LimitingConeAngle = value;
                _spotDiffuseEffect.LimitingConeAngle  = value;
                break;

            case LightingProperty.Azimuth:
                _distantSpecularEffect.Azimuth = value;
                _distantDiffuseEffect.Azimuth  = value;
                break;

            case LightingProperty.Elevation:
                _distantSpecularEffect.Elevation = value;
                _distantDiffuseEffect.Elevation  = value;
                break;

            case LightingProperty.SurfaceScale:
                _pointSpecularEffect.SurfaceScale   = value;
                _spotSpecularEffect.SurfaceScale    = value;
                _distantSpecularEffect.SurfaceScale = value;
                _pointDiffuseEffect.SurfaceScale    = value;
                _spotDiffuseEffect.SurfaceScale     = value;
                _distantDiffuseEffect.SurfaceScale  = value;
                break;

            default:

                break;
            }
        }
 /// <summary>State the property to render. In case of several SetFullscreenOutput chained call, only last will be used.</summary>
 public ref FramePassSettings SetFullscreenOutput(LightingProperty lightingProperty)
 {
     m_LightingProperty = lightingProperty;
     return(ref *thisPtr);
 }
 public FramePassSettings(FramePassSettings other)
 {
     m_MaterialProperty = other.m_MaterialProperty;
     m_LightingProperty = other.m_LightingProperty;
     m_DebugFullScreen  = other.m_DebugFullScreen;
 }