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

#include <RenderTypePlugin.hpp>

Public Attributes

bool hasNormals = false
bool lit = false
u32 normalTextureId = 0
bool skinned = false
bool lightmapped = false
bool tangents = false
bool opaque = true
u32 materialId = 0

Detailed Description

Definition at line 189 of file RenderTypePlugin.hpp.

Member Data Documentation

◆ hasNormals

bool esengine::MeshProgramFacts::hasNormals = false

◆ lightmapped

bool esengine::MeshProgramFacts::lightmapped = false

Whether the GEOMETRY can be read through a bake — it carries the second UV set, and is not posed by bones. Whether it HAS one is the atlas rectangle in its record, which is a number rather than a program.

Definition at line 197 of file RenderTypePlugin.hpp.

Referenced by esengine::MeshPlugin::prewarmFacts().

◆ lit

bool esengine::MeshProgramFacts::lit = false

Definition at line 191 of file RenderTypePlugin.hpp.

◆ materialId

u32 esengine::MeshProgramFacts::materialId = 0

Definition at line 202 of file RenderTypePlugin.hpp.

◆ normalTextureId

u32 esengine::MeshProgramFacts::normalTextureId = 0

Definition at line 192 of file RenderTypePlugin.hpp.

Referenced by esengine::MeshPlugin::collect().

◆ opaque

bool esengine::MeshProgramFacts::opaque = true

Whether it draws unblended (MeshRenderer.opaque). A document row does not say, and most meshes are, so readying assumes so.

Definition at line 201 of file RenderTypePlugin.hpp.

Referenced by esengine::MeshPlugin::prewarmFacts().

◆ skinned

bool esengine::MeshProgramFacts::skinned = false

◆ tangents

bool esengine::MeshProgramFacts::tangents = false

Whether the geometry carries a tangent frame (with its normals): the program then declares and reads it.

Definition at line 199 of file RenderTypePlugin.hpp.

Referenced by esengine::MeshPlugin::collect(), and esengine::MeshPlugin::prewarmFacts().


The documentation for this struct was generated from the following file: