|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
public override void Execute(ScriptableRenderer renderer, ref ScriptableRenderContext context, |
|
|
|
ref CullResults cullResults, ref RenderingData renderingData) |
|
|
|
public override void Execute(ScriptableRenderer renderer, ScriptableRenderContext context, ref RenderingData renderingData) |
|
|
|
RenderTextureDescriptor descriptor = ScriptableRenderer.CreateRTDesc(ref renderingData.cameraData); |
|
|
|
RenderTextureDescriptor descriptor = ScriptableRenderer.CreateRenderTextureDescriptor(ref renderingData.cameraData); |
|
|
|
descriptor.width = (int) (descriptor.width * 0.5f); |
|
|
|
descriptor.height = (int) (descriptor.height * 0.5f); |
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
Camera camera = renderingData.cameraData.camera; |
|
|
|
context.StartMultiEye(camera); |
|
|
|
context.DrawRenderers(cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings); |
|
|
|
context.DrawRenderers(renderingData.cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings); |
|
|
|
context.DrawRenderers(cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings); |
|
|
|
context.DrawRenderers(renderingData.cullResults.visibleRenderers, ref drawSettings, transparentFilterSettings); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|