6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Mathematics;
8 using SiliconStudio.Paradox.Effects.Modules;
9 using SiliconStudio.Paradox.Engine;
11 namespace SiliconStudio.
Paradox.Effects
34 var pass = context.CurrentPass;
39 if(Camera.Entity == null)
40 throw new Exception(
"The camera component provided to 'CameraSetter' should be associated to an entity");
42 var viewParameters = pass.Parameters;
46 Camera.Calculate(out projection, out worldToCamera);
48 viewParameters.Set(TransformationKeys.View, worldToCamera);
49 viewParameters.Set(TransformationKeys.Projection, projection);
50 viewParameters.Set(CameraKeys.NearClipPlane, Camera.NearPlane);
51 viewParameters.Set(CameraKeys.FarClipPlane, Camera.FarPlane);
52 viewParameters.Set(CameraKeys.FieldOfView, Camera.VerticalFieldOfView);
53 viewParameters.Set(CameraKeys.Aspect, Camera.AspectRatio);
54 viewParameters.Set(CameraKeys.FocusDistance, Camera.FocusDistance);
Performs render pipeline transformations attached to a specific RenderPass.
A service registry is a IServiceProvider that provides methods to register and unregister services...
A processor that updates camera view and projection along the setup of RenderTargetSetter ...
Describes the camera projection and view.
CameraSetter(IServiceRegistry services)
Initializes a new instance of the Renderer class.
Thread-local storage context used during rendering.
override void OnRendering(RenderContext context)
Represents a 4x4 mathematical matrix.