Exemple #1
0
        public override void Create()
        {
            var passIndex = settings.blitMaterial != null ? settings.blitMaterial.passCount - 1 : 1;

            settings.blitMaterialPassIndex = Mathf.Clamp(settings.blitMaterialPassIndex, -1, passIndex);
            blitPass = new BlitPass(settings.Event, settings.blitMaterial, settings.blitMaterialPassIndex, name);
            m_RenderTextureHandle.Init(settings.textureId);
        }
Exemple #2
0
 /// <summary>
 /// Create the CopyColorPass
 /// </summary>
 public EnviroBlitPass(UnityEngine.Rendering.Universal.RenderPassEvent renderPassEvent, Material blitMaterial, int blitShaderPassIndex, string tag)
 {
     this.renderPassEvent     = renderPassEvent;
     this.blitMaterial        = blitMaterial;
     this.blitShaderPassIndex = blitShaderPassIndex;
     m_ProfilerTag            = tag;
     m_TemporaryColorTexture.Init("_TemporaryColorTexture");
 }
Exemple #3
0
 public WaterFXPass()
 {
     m_WaterFX.Init("_WaterFXMap");
     transparentFilterSettings = new FilteringSettings(RenderQueueRange.transparent);
 }
Exemple #4
0
 public GrassDisplacementPass()
 {
     m_GrassDisplacementFX.Init("_Lux_DisplacementRT");
     transparentFilterSettings = new FilteringSettings(RenderQueueRange.transparent);
 }