Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::RenderFrame::ViewLighting Struct Reference

The editor view's own lighting, in place of the scene's. More...

#include <RenderFrame.hpp>

Public Attributes

bool studio = false
f32 rotation = 0.0f
 Degrees about +Y that the key and fill turn together.
f32 keyIntensity = 0.8f
f32 fillIntensity = 0.3f
f32 skyIntensity = 1.0f
 Scales the neutral sky's light; the scene's own Ambient is not consulted.
bool showSky = false
 Draw the scene's environment as the background while studio-lit.

Detailed Description

The editor view's own lighting, in place of the scene's.

VIEW state, not scene state: nothing here is a component, nothing is saved, and a host that never calls the setter (every packaged build) lights the scene by its own lights exactly as before. In studio mode the frame ignores the scene's lights and lights with a neutral sky, a key and a fill, so a model the scene left dark can be read. The scene's environment may still be drawn as the BACKGROUND (showSky): seeing the sky and being lit by it are separate questions.

Definition at line 558 of file RenderFrame.hpp.

Member Data Documentation

◆ fillIntensity

f32 esengine::RenderFrame::ViewLighting::fillIntensity = 0.3f

Definition at line 563 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().

◆ keyIntensity

f32 esengine::RenderFrame::ViewLighting::keyIntensity = 0.8f

Definition at line 562 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().

◆ rotation

f32 esengine::RenderFrame::ViewLighting::rotation = 0.0f

Degrees about +Y that the key and fill turn together.

Definition at line 561 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().

◆ showSky

bool esengine::RenderFrame::ViewLighting::showSky = false

Draw the scene's environment as the background while studio-lit.

Definition at line 567 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().

◆ skyIntensity

f32 esengine::RenderFrame::ViewLighting::skyIntensity = 1.0f

Scales the neutral sky's light; the scene's own Ambient is not consulted.

Definition at line 565 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().

◆ studio

bool esengine::RenderFrame::ViewLighting::studio = false

Definition at line 559 of file RenderFrame.hpp.

Referenced by esengine::renderer_setViewLighting().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/frame/RenderFrame.hpp