Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
ViewShading.hpp File Reference

How a view shades the meshes it draws: as authored, clay, flat albedo, wireframe, or one part of the light. More...

#include "../../core/Types.hpp"
#include <unordered_map>
Include dependency graph for ViewShading.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  esengine::WeightTarget
 The one skinned entity a view colours by a joint's weights, and which joint. More...
class  esengine::ViewShading
 The mode each view asked for. A view that never asked is Shaded, which is why a frame with nothing set costs a hash lookup per collect and nothing else. More...

Namespaces

namespace  esengine

Enumerations

enum class  esengine::ShadingMode : u8 {
  esengine::Shaded = 0 , esengine::Clay = 1 , esengine::Albedo = 2 , esengine::Wireframe = 3 ,
  esengine::DirectLighting = 4 , esengine::IndirectLighting = 5 , esengine::Clusters = 6
}
 What a mesh is drawn WITH in a view, whatever its own material says. More...

Functions

bool esengine::shadesAsClay (ShadingMode mode)
 Whether a mode draws meshes as clay (the lit neutral surface).

Variables

constexpr u8 esengine::kShadingModeCount = 7

Detailed Description

How a view shades the meshes it draws: as authored, clay, flat albedo, wireframe, or one part of the light.

Definition in file ViewShading.hpp.