|
|
|
|
|
|
namespace UnityEngine.Experimental.Rendering.LightweightPipeline |
|
|
|
{ |
|
|
|
[ImageEffectAllowedInSceneView] |
|
|
|
public class PlanerReflections : MonoBehaviour, LightweightPipeline.IBeforeCameraRender |
|
|
|
public class PlanerReflections : MonoBehaviour, IBeforeCameraRender |
|
|
|
{ |
|
|
|
[System.Serializable] |
|
|
|
public enum ResolutionMulltiplier |
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public void ExecuteBeforeCameraRender( |
|
|
|
LightweightPipeline pipelineInstance, |
|
|
|
LightweightRenderPipeline pipelineInstance, |
|
|
|
ScriptableRenderContext context, |
|
|
|
Camera camera) |
|
|
|
{ |
|
|
|
|
|
|
UpdateReflectionCamera(camera); |
|
|
|
|
|
|
|
CullResults cullResults = new CullResults(); |
|
|
|
LightweightPipeline.RenderSingleCamera(pipelineInstance, context, m_ReflectionCamera, ref cullResults); |
|
|
|
LightweightRenderPipeline.RenderSingleCamera(pipelineInstance, context, m_ReflectionCamera, ref cullResults); |
|
|
|
|
|
|
|
GL.invertCulling = false; |
|
|
|
RenderSettings.fog = true; |
|
|
|