mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Implement Physical Light Units as an optional setting.
This allows light sources to be specified in physical light units in addition to the regular energy multiplier. In order to avoid loss of precision at high values, brightness values are premultiplied by an exposure normalization value. In support of Physical Light Units this PR also renames CameraEffects to CameraAttributes.
This commit is contained in:
parent
736632ee7e
commit
385ee5c70b
131 changed files with 2692 additions and 1283 deletions
|
@ -397,6 +397,7 @@ RenderingServerDefault::RenderingServerDefault(bool p_create_thread) :
|
|||
RSG::canvas = memnew(RendererCanvasCull);
|
||||
RSG::viewport = memnew(RendererViewport);
|
||||
RendererSceneCull *sr = memnew(RendererSceneCull);
|
||||
RSG::camera_attributes = memnew(RendererCameraAttributes);
|
||||
RSG::scene = sr;
|
||||
RSG::rasterizer = RendererCompositor::create();
|
||||
RSG::utilities = RSG::rasterizer->get_utilities();
|
||||
|
@ -418,4 +419,5 @@ RenderingServerDefault::~RenderingServerDefault() {
|
|||
memdelete(RSG::viewport);
|
||||
memdelete(RSG::rasterizer);
|
||||
memdelete(RSG::scene);
|
||||
memdelete(RSG::camera_attributes);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue