ForwardRenderer QML Type

The ForwardRenderer provides a default FrameGraph implementation of a forward renderer. 更多...

import 语句: import Qt3D.Extras 2.0
Since: Qt 5.7
实例化: QForwardRenderer

特性

详细描述

Forward rendering is what OpenGL traditionally uses. It renders directly to the backbuffer one object at a time shading each one as it goes.

ForwardRenderer is a single leaf FrameGraph tree which contains a Viewport, a CameraSelector ,和 ClearBuffers ForwardRenderer has a default requirement filter key whose name is "renderingStyle" and value "forward". If you need to filter out your techniques, you should do so based on that filter key.

By default the viewport occupies the whole screen and the clear color is white. Frustum culling is also enabled.

特性文档编制

camera : Entity

Holds the current camera entity used to render the scene.

注意: A camera is an Entity that has a CameraLens as one of its components.

clearColor : color

Holds the current clear color of the scene. The frame buffer is initialized to the clear color before rendering.

frustumCulling : color

Indicates if the renderer applies frustum culling to the scene.

gamma : color

Holds the gamma value the renderer applies to the scene.

surface : 对象

Holds the current render surface.

viewportRect : rect

Holds the current normalized viewport rectangle.