UnityTechnologies / LWRPScriptableRenderPass_ExampleLibrary

246 stars 45 forks source link

The type or namespace name 'LWRP' does not exist #4

Open jBachalo opened 5 years ago

jBachalo commented 5 years ago

Hi Trying to open the project using Unity 2018.3.7f1 and LWRP 4.8.0-preview.

Am getting several compile errors all relating to a missing LWRP package ie using UnityEngine.Rendering.LWRP; using UnityEngine.Experimental.Rendering.LWRP;

jBachalo commented 5 years ago

Update For both BlurGrabPass and PlanarReflection modified the following

using UnityEngine.Rendering.LWRP;
using UnityEngine.Experimental.Rendering.LWRP;

to

using UnityEngine.Experimental.Rendering;
using UnityEngine.Experimental.Rendering.LightweightPipeline;

and also mofied the method signature for LightweightRenderPipeline.RenderSingleCamera in PlanarReflection.cs to

LightweightRenderPipeline.RenderSingleCamera(pipelineInstance, context, camera, ref m_CullResults, camera.GetComponent<IRendererSetup>());

and added a private variable in PlanarReflections CullResults m_CullResults;

BlurryRefractions is now working and no compile errors, however the other 2 demos are not. I assume my method call to RenderSingleCamera is still wrong.