Beispiel #1
0
 public GrabBlurPassImpl(RenderTargetHandle colorHandle)
 {
     m_Blur = new CommandBufferBlur();
     m_BlurTemp1.Init("_Temp1");
     m_BlurTemp2.Init("_Temp2");
     m_ScreenCopyId.Init("_ScreenCopyTexture");
 }
Beispiel #2
0
    public GrabBlurPassImpl(RenderTargetHandle colorHandle)
    {
        m_ColorHandle = colorHandle;
        m_Blur        = new CommandBufferBlur();

        m_BlurTemp1 = Shader.PropertyToID("_Temp1");
        m_BlurTemp2 = Shader.PropertyToID("_Temp2");
    }
Beispiel #3
0
        public void Setup(RenderTargetIdentifier source, RenderTargetHandle destination)
        {
            this.source      = source;
            this.destination = destination;
            m_Blur           = new CommandBufferBlur();

            m_BlurTemp1 = Shader.PropertyToID("_Temp1");
            m_BlurTemp2 = Shader.PropertyToID("_Temp2");
        }
    public PerObjectBloomRenderer()
    {
        m_Blur = new CommandBufferBlur();

        m_BlurTemp1 = Shader.PropertyToID("_Temp1");
        m_BlurTemp2 = Shader.PropertyToID("_Temp2");

        m_MaskedBrightnessBlit = CoreUtils.CreateEngineMaterial(k_MaskedBightnessBlitShader);
        m_AdditiveBlit         = CoreUtils.CreateEngineMaterial(k_AdditiveBlitShader);
    }