4#ifndef GREM_GRAPHICS_3D_INSTANCES_3D_HPP
5#define GREM_GRAPHICS_3D_INSTANCES_3D_HPP
510 , renderer3D(&renderer3D) {}
521 jointsDirty = !joints.empty();
522 morphTargetWeightsDirty = !morphTargetWeights.empty();
523 model3DInstanceBuffer.clear();
524 model2DInstanceBuffer.clear();
525 opaqueModel3DDrawCommandBuffer.clear();
526 transparent3DDrawCommands.clear();
527 transparent2DDrawCommands.clear();
529 morphTargetWeights.clear();
594 GREM_API(graphics_3d)
646 GREM_API(graphics_3d)
667 GREM_API(graphics_3d)
686 GREM_API(graphics_3d)
751 GREM_API(graphics_3d)
769 GREM_API(graphics_3d)
804 GREM_API(graphics_3d)
825 GREM_API(graphics_3d)
844 GREM_API(graphics_3d)
909 GREM_API(graphics_3d)
927 GREM_API(graphics_3d)
962 GREM_API(graphics_3d)
983 GREM_API(graphics_3d)
1002 GREM_API(graphics_3d)
1068 GREM_API(graphics_3d)
1086 GREM_API(graphics_3d)
1121 GREM_API(graphics_3d)
1142 GREM_API(graphics_3d)
1161 GREM_API(graphics_3d)
1182 return shaderPipelineSelector(shaderConfiguration).lock();
1184 putShadedModelInstanceImplementation(shaderPipelineSelectorAdapter, model, transformation, instance);
1207 putShadedModelInstance(std::forward<
decltype(shaderPipelineSelector)>(shaderPipelineSelector), model, temporaryModelTransformation, instance);
1233 putShadedModelInstance(std::forward<
decltype(shaderPipelineSelector)>(shaderPipelineSelector), model, temporaryModelTransformation, instance);
1256 GREM_ASSERT(transformations.size() == instances.size());
1258 return shaderPipelineSelector(shaderConfiguration).lock();
1260 putShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations, instances);
1284 return shaderPipelineSelector(shaderConfiguration).lock();
1286 putShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations,
StridedSpan{&instance, 1});
1307 return shaderPipelineSelector(shaderConfiguration).lock();
1310 putShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations,
StridedSpan{&defaultInstance, 1});
1335 GREM_ASSERT(transformations.size() == instances.size());
1337 return shaderPipelineSelector(shaderConfiguration).lock();
1339 putVisibleShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations, instances, instancesVisible);
1365 return shaderPipelineSelector(shaderConfiguration).lock();
1367 putVisibleShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations,
StridedSpan{&instance, 1}, instancesVisible);
1391 return shaderPipelineSelector(shaderConfiguration).lock();
1394 putVisibleShadedModelInstancesImplementation(shaderPipelineSelectorAdapter, model, transformations,
StridedSpan{&defaultInstance, 1}, instancesVisible);
1527 GREM_API(graphics_3d)
1608 GREM_API(graphics_3d)
1665 struct Transparent3DDrawCommand {
1667 uint32_t instanceIndex;
1670 float boundingRadius;
1671 float distanceOrderingBias;
1674 struct Transparent2DDrawCommand {
1675 mat4 transformation;
1679 uint32_t instanceOffset;
1680 float boundingRadius;
1681 float distanceOrderingBias;
1686 GREM_API(graphics_3d)
1687 void putShadedModelInstanceImplementation(
1691 GREM_API(graphics_3d)
1692 void putShadedModelInstancesImplementation(
1696 GREM_API(graphics_3d)
1697 void putVisibleShadedModelInstancesImplementation(
1701 GREM_API(graphics_3d)
1704 GREM_API(graphics_3d)
1708 Renderer3D* renderer3D;
1710 mutable bool jointsDirty =
false;
1711 mutable bool morphTargetWeightsDirty =
false;
1712 InstanceBuffer<Model3D::Instance> model3DInstanceBuffer{*device};
1713 InstanceBuffer<Model2D::Instance> model2DInstanceBuffer{*device};
1714 UnorderedDrawCommandBuffer<Model3D::Mesh> opaqueModel3DDrawCommandBuffer{*device};
1715 ArrayList<Transparent3DDrawCommand> transparent3DDrawCommands{};
1716 ArrayList<Transparent2DDrawCommand> transparent2DDrawCommands{};
1717 Buffer<Model3D::JointFields> joints{};
1718 Buffer<Model3D::MorphTargetWeightFields> morphTargetWeights{};
#define GREM_ASSERT(expression)
Definition assertions.hpp:77
Floating-point linear RGBA color in the Rec.
Definition Color.hpp:60
static const Color INVISIBLE
Definition Color.hpp:70
static const Color WHITE
Definition Color.hpp:215
Definition FunctionView.hpp:29
Definition SharedPointer.hpp:65
Definition StridedSpan.hpp:427
Persistent system managing the rendering context of a Window.
Definition Device.hpp:68
Typeface describing an assortment of character glyphs that may be rendered on-demand into an expandin...
Definition Font2D.hpp:66
Batch of instances to be drawn in a Renderer3D frame.
Definition Instances3D.hpp:494
void putVisibleShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in ...
Definition Instances3D.hpp:1388
void putHDRPBRModelInstance(const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance)
Add a 3D model instance to be rendered in a specific local pose using the default HDR PBR shader.
void putHDRPBRModelInstance(const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered using the default HDR PBR shader.
void putShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
Definition Instances3D.hpp:1281
void putHDRUnlitModelInstance(const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in its default bind pose using the default HDR unlit shader.
void putShadedModelInstance(auto &&shaderPipelineSelector, const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in its default bind pose using a specific shader pipeline.
Definition Instances3D.hpp:1203
void putVisibleHDRUnlitModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader if they are i...
void putHDRPBRModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances)
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader.
void putShadedSpriteInstance(const Model2D::ShaderPipeline &shaderPipeline, const SpriteAtlas &spriteAtlas, SpriteID spriteID, const SpriteInstance3D &instance)
Add a sprite instance to be rendered using a specific shader pipeline.
void clear()
Clear the batch of all instances.
Definition Instances3D.hpp:520
void putHDRPBRModelInstance(const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in its default bind pose using the default HDR PBR shader.
void putVisibleHDRPBRModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using the default HDR PBR shader if they are in ...
void putHDRUnlitModelInstance(const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered using the default HDR unlit shader.
void putVisiblePBRModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using the default PBR shader if they are in a vi...
void putShadedModelInstance(auto &&shaderPipelineSelector, const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in a specific local pose using a specific shader pipeline.
Definition Instances3D.hpp:1228
void putShadedQuadInstance(const Model2D::ShaderPipeline &shaderPipeline, const QuadInstance3D &instance)
Add a quad instance to be rendered using a specific shader pipeline.
void putVisibleUnlitModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using the default unlit shader if they are in a ...
void putPBRModelInstance(const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in its default bind pose using the default PBR shader.
void putShadedFlatModelInstance(const Model2D::ShaderPipeline &shaderPipeline, const Model2D &model, const FlatModelInstance3D &instance)
Add a flat 2D model instance to be rendered using a specific shader pipeline.
void putShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
Definition Instances3D.hpp:1305
void putPBRModelInstance(const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance)
Add a 3D model instance to be rendered in a specific local pose using the default PBR shader.
void putPBRModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances)
Add a list of instances of a 3D model to be rendered using the default PBR shader.
void putFlatModelInstance(const Model2D &model, const FlatModelInstance3D &instance)
Add a flat 2D model instance to be rendered using a plain 2D model shader.
void putQuadInstance(const QuadInstance3D &instance)
Add a quad instance to be rendered using a plain 2D model shader.
void putUnlitModelInstance(const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in a specific local pose using the default unlit shader.
void putVisibleShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in ...
Definition Instances3D.hpp:1333
void putUnlitModelInstance(const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered using the default unlit shader.
void putShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline.
Definition Instances3D.hpp:1254
void putShadedModelInstance(auto &&shaderPipelineSelector, const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered using a specific shader pipeline.
Definition Instances3D.hpp:1180
void putSpriteInstance(const SpriteAtlas &spriteAtlas, SpriteID spriteID, const SpriteInstance3D &instance)
Add a sprite instance to be rendered using a plain 2D model shader.
void putUnlitModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances)
Add a list of instances of a 3D model to be rendered using the default unlit shader.
void putUnlitModelInstance(const Model3D &model, const mat4 &transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in its default bind pose using the default unlit shader.
void putShadedTextStringInstance(const Model2D::ShaderPipeline &shaderPipeline, Font2D &font, UTF8StringView string, const TextStringInstance3D &instance)
Add a 3D text string instance to be rendered using a specific shader pipeline.
Instances3D(Device &device, Renderer3D &renderer3D)
Construct a batch of instances.
Definition Instances3D.hpp:508
void putTextInstance(const Text2D &text, const TextInstance3D &instance)
Add a 3D text instance to be rendered using a plain 3D text shader.
void putShadedTriangleInstance(const Model2D::ShaderPipeline &shaderPipeline, const TriangleInstance3D &instance)
Add a triangle instance to be rendered using a specific shader pipeline.
void putTriangleInstance(const TriangleInstance3D &instance)
Add a triangle instance to be rendered using a plain 2D model shader.
void putHDRUnlitModelInstance(const Model3D &model, const mat4 &transformation, resource::Model::PoseView pose, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered in a specific local pose using the default HDR unlit shader.
void putVisibleShadedModelInstances(auto &&shaderPipelineSelector, const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, const ModelInstance3D &instance, StridedSpan< const bool > instancesVisible)
Add a list of instances of a 3D model to be rendered using a specific shader pipeline if they are in ...
Definition Instances3D.hpp:1362
void putHDRUnlitModelInstances(const Model3D &model, StridedSpan< const resource::Model::TransformationView > transformations, StridedSpan< const ModelInstance3D > instances)
Add a list of instances of a 3D model to be rendered using the default HDR unlit shader.
void putPBRModelInstance(const Model3D &model, resource::Model::TransformationView transformation, const ModelInstance3D &instance={})
Add a 3D model instance to be rendered using the default PBR shader.
void putShadedTextInstance(const Model2D::ShaderPipeline &shaderPipeline, const Text2D &text, const TextInstance3D &instance)
Add a 3D text instance to be rendered using a specific shader pipeline.
void putTextStringInstance(Font2D &font, UTF8StringView string, const TextStringInstance3D &instance)
Add a 3D text string instance to be rendered using a plain 3D text shader.
Container for a set of 2D triangle strip meshes stored on the GPU.
Definition Model2D.hpp:30
graphics::ShaderPipeline< Mesh > ShaderPipeline
Shader pipeline for drawing 2D models.
Definition Model2D.hpp:152
Container for a set of 3D triangle mesh nodes stored on the GPU.
Definition Model3D.hpp:67
const resource::Model::Pose & getBindPose() const noexcept
Get the local bind pose of the model.
Definition Model3D.hpp:935
resource::Model::JointCount getJointCount() const noexcept
Get the number of joints in the model.
Definition Model3D.hpp:944
resource::Model::MorphTargetWeightCount getMorphTargetWeightCount() const noexcept
Get the number of morph target weights of the model.
Definition Model3D.hpp:963
BufferSet< JointBuffer, MorphTargetWeightBuffer > InstanceBuffers
Set of shader buffers related to the dynamic data of 3D model instances.
Definition Model3D.hpp:355
Span< const resource::Model::JointIndex > getJointParentIndices() const noexcept
Get the indices of the parent joints of each joint of the model.
Definition Model3D.hpp:972
graphics::ShaderPipeline< Mesh > ShaderPipeline
Shader pipeline for drawing 3D models.
Definition Model3D.hpp:398
Persistent system that provides 3D rendering capabilities.
Definition Renderer3D.hpp:120
Linked GPU shader pipeline.
Definition shaders.hpp:1508
Expandable texture atlas for packing 2D images into a spritesheet to enable batch rendering.
Definition SpriteAtlas.hpp:173
Facility for shaping text, according to a Font2D, into renderable glyphs.
Definition Text2D.hpp:206
Storage for multidimensional data, such as 2D images, on the GPU, combined with a sampler configurati...
Definition Texture.hpp:700
Definition buffer_layouts.hpp:20
qua< float > quat
Definition math.hpp:892
vec< 2, float > vec2
Definition math.hpp:438
GREM_ALWAYS_INLINE void lock(Lockable1 &lock1, Lockable2 &lock2, LockableN &... lockN)
Definition synchronization.hpp:1268
vec< 3, float > vec3
Definition math.hpp:439
mat< 2, 2, float > mat2
Definition math.hpp:804
mat< 4, 4, float > mat4
Definition math.hpp:806
StringViewBase< char, std::char_traits< char > > StringView
Definition StringView.hpp:16
StringViewBase< char8_t, std::char_traits< char8_t > > UTF8StringView
Definition StringView.hpp:17
Configuration of a flat Model2D instance to draw in 3D.
Definition Instances3D.hpp:97
const Texture * texture
Non-owning pointer to a texture to apply to the model, or nullptr to use a fully white texture.
Definition Instances3D.hpp:105
Color color
Tint color to use in the shader.
Definition Instances3D.hpp:141
float distanceOrderingBias
Bias to subtract from the model's distance from the camera, which is used for distance ordering when ...
Definition Instances3D.hpp:157
vec2 textureOffset
Offset, in texture coordinates, to apply to the texture coordinates before sampling the texture.
Definition Instances3D.hpp:119
mat4 transformation
Transformation of the model instance.
Definition Instances3D.hpp:110
mat2 textureBasis
Texture coordinate basis to scale/rotate/shear the texture coordinates by before sampling the texture...
Definition Instances3D.hpp:128
Color emissiveColor
Emissive color to use in the shader.
Definition Instances3D.hpp:151
Filter parameters that determine which instances in a 3D batch to draw.
Definition Instances3D.hpp:1724
bool skipAlphaBlendedModelMeshInstances
If set, alpha-blended model mesh instances will not be drawn.
Definition Instances3D.hpp:1731
FunctionView< bool(vec3 position, float boundingRadius, float distanceOrderingBias)> transparentInstanceFilter
Function that determines whether a specific transparent instance should be drawn or not.
Definition Instances3D.hpp:1726
bool skipOpaqueModelMeshInstances
If set, non-alpha-blended model mesh instances will not be drawn.
Definition Instances3D.hpp:1734
bool skipAll2DInstances
If set, 2D instances will not be drawn.
Definition Instances3D.hpp:1740
bool skipAll3DInstances
If set, 3D instances will not be drawn.
Definition Instances3D.hpp:1737
Instances3DFilter filter
Filter parameters that determine which instances to draw.
Definition Instances3D.hpp:1757
Instances3DView(const Instances3D &instances, const Model2D::ShaderPipeline &shaderPipelineOverride2D, const Model3D::ShaderPipeline &shaderPipelineOverride3D, const Instances3DFilter &filter={})
Construct an instance batch view with both 2D and 3D shader overrides.
Definition Instances3D.hpp:1805
const Instances3D * instances
Non-owning read-only pointer to the batch of instances.
Definition Instances3D.hpp:1748
SharedPointer< ShaderPipelineImplementation > shaderPipelineOverride2DHandle
Shader pipeline override to use for 2D mesh instances, or nullptr to not use a shader override.
Definition Instances3D.hpp:1751
Instances3DView(const Instances3D &instances, const Model3D::ShaderPipeline &shaderPipelineOverride3D, const Instances3DFilter &filter={})
Construct an instance batch view with a 3D shader override.
Definition Instances3D.hpp:1790
Instances3DView(const Instances3D &instances, const Instances3DFilter &filter={})
Construct an instance batch view.
Definition Instances3D.hpp:1765
Instances3DView(const Instances3D &instances, const Model2D::ShaderPipeline &shaderPipelineOverride2D, const Instances3DFilter &filter={})
Construct an instance batch view with a 2D shader override.
Definition Instances3D.hpp:1777
SharedPointer< ShaderPipelineImplementation > shaderPipelineOverride3DHandle
Shader pipeline override to use for 3D mesh instances, or nullptr to not use a shader override.
Definition Instances3D.hpp:1754
Configuration options for shading a mesh instance of a 3D model.
Definition Model3D.hpp:81
Configuration of a Model3D instance to draw.
Definition Instances3D.hpp:47
vec3 emissiveFactor
Emissive factor to use in the shader.
Definition Instances3D.hpp:75
Color emissiveColor
Emissive color to use in the shader.
Definition Instances3D.hpp:66
float distanceOrderingBias
Bias to subtract from the model's distance from the camera, which is used for distance ordering when ...
Definition Instances3D.hpp:91
uint32_t instanceIdentifier
Instance identifier that can be used to identify this instance in shaders.
Definition Instances3D.hpp:82
Color color
Tint color to use in the shader.
Definition Instances3D.hpp:56
Configuration of a 3D quadrilateral instance, optionally textured, to draw.
Definition Instances3D.hpp:229
vec2 origin
Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the quad.
Definition Instances3D.hpp:259
quat orientation
Rotation of the quad around its QuadInstance3D::origin.
Definition Instances3D.hpp:247
mat2 textureBasis
Texture coordinate basis to scale/rotate/shear the texture coordinates by before sampling the texture...
Definition Instances3D.hpp:277
vec2 size
Size of the quad, in world coordinates.
Definition Instances3D.hpp:252
float distanceOrderingBias
Bias to subtract from the quad's distance from the camera, which is used for distance ordering when d...
Definition Instances3D.hpp:306
Color color
Tint color to use in the shader.
Definition Instances3D.hpp:290
Color emissiveColor
Emissive color to use in the shader.
Definition Instances3D.hpp:300
vec3 position
Position, in world coordinates, to draw the quad at.
Definition Instances3D.hpp:242
const Texture * texture
Non-owning pointer to a texture to apply to the quad, or nullptr to use a fully white texture.
Definition Instances3D.hpp:237
vec2 textureOffset
Offset, in texture coordinates, to apply to the texture coordinates before sampling the texture.
Definition Instances3D.hpp:268
Identifier for a specific image in a SpriteAtlas.
Definition SpriteAtlas.hpp:124
Configuration of a 3D sprite instance from a SpriteAtlas to draw.
Definition Instances3D.hpp:312
float distanceOrderingBias
Bias to subtract from the sprite's distance from the camera, which is used for distance ordering when...
Definition Instances3D.hpp:359
Color color
Tint color to use in the shader.
Definition Instances3D.hpp:343
Color emissiveColor
Emissive color to use in the shader.
Definition Instances3D.hpp:353
quat orientation
Rotation of the sprite around its SpriteInstance3D::origin.
Definition Instances3D.hpp:321
vec2 origin
Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the sprite.
Definition Instances3D.hpp:333
vec3 position
Position, in world coordinates, to draw the sprite at.
Definition Instances3D.hpp:316
vec2 size
Size of the sprite, in world coordinates.
Definition Instances3D.hpp:326
Text alignment mode.
Definition Text2D.hpp:53
static const TextAlign NONE
No alignment.
Definition Text2D.hpp:54
Configuration of a 3D instance of Text2D shaped from a Font2D to draw.
Definition Instances3D.hpp:365
float distanceOrderingBias
Bias to subtract from the text's distance from the camera, which is used for distance ordering when d...
Definition Instances3D.hpp:410
vec2 alignmentOffset
Additional offset to apply to the text after applying the specified alignment.
Definition Instances3D.hpp:399
TextAlign alignment
Alignment mode of the text.
Definition Instances3D.hpp:393
quat orientation
Rotation of the text around its TextInstance3D::origin.
Definition Instances3D.hpp:375
vec2 scale
Coefficients to scale the size of the text by.
Definition Instances3D.hpp:388
vec3 position
Starting position, in world coordinates, to draw the text at.
Definition Instances3D.hpp:370
Color color
Base text color.
Definition Instances3D.hpp:404
Configuration of a 3D instance of a string of text to draw using a Font2D.
Definition Instances3D.hpp:416
uint32_t characterSize
Character size to shape the glyphs at.
Definition Instances3D.hpp:420
float distanceOrderingBias
Bias to subtract from the text's distance from the camera, which is used for distance ordering when d...
Definition Instances3D.hpp:488
vec2 scale
Coefficients to scale the size of the text by.
Definition Instances3D.hpp:466
Color color
Base text color.
Definition Instances3D.hpp:482
quat orientation
Rotation of the text around its TextStringInstance3D::origin.
Definition Instances3D.hpp:431
vec2 shapeOrigin
Offset, in normalized coordinates, specifying the origin relative to the baseline of the first line o...
Definition Instances3D.hpp:453
TextAlign alignment
Alignment mode of the text.
Definition Instances3D.hpp:471
vec2 alignmentOffset
Additional offset to apply to the text after applying the specified alignment.
Definition Instances3D.hpp:477
vec3 position
Starting position, in world coordinates, to draw the text at.
Definition Instances3D.hpp:426
vec2 shapeScale
Scaling to apply to the size of the shaped glyphs.
Definition Instances3D.hpp:444
Configuration of an arbitrarily transformed 3D triangle instance, optionally textured,...
Definition Instances3D.hpp:164
float distanceOrderingBias
Bias to subtract from the triangle's distance from the camera, which is used for distance ordering wh...
Definition Instances3D.hpp:223
mat2 textureBasis
Texture coordinate basis to scale/rotate/shear the texture coordinates by before sampling the texture...
Definition Instances3D.hpp:194
vec3 pointC
Position, in world coordinates, of the third vertex of the triangle to draw.
Definition Instances3D.hpp:176
const Texture * texture
Non-owning pointer to a texture to apply to the triangle, or nullptr to use a fully white texture.
Definition Instances3D.hpp:172
vec3 pointB
Position, in world coordinates, of the second vertex of the triangle to draw.
Definition Instances3D.hpp:175
vec3 pointA
Position, in world coordinates, of the first vertex of the triangle to draw.
Definition Instances3D.hpp:174
vec2 textureOffset
Offset, in texture coordinates, to apply to the texture coordinates before sampling the texture.
Definition Instances3D.hpp:185
Color color
Tint color to use in the shader.
Definition Instances3D.hpp:207
Color emissiveColor
Emissive color to use in the shader.
Definition Instances3D.hpp:217
Read-only view over a local pose of a model.
Definition Model.hpp:682
const Joint * localJoints
Non-owning read-only pointer to the current local joints of the pose.
Definition Model.hpp:686
const float * localMorphTargetWeights
Non-owning read-only pointer to the current local morph target weights of the pose.
Definition Model.hpp:692
Local pose of a model.
Definition Model.hpp:733
ArrayList< Joint > localJoints
Current local joints of the pose.
Definition Model.hpp:734
ArrayList< float > localMorphTargetWeights
Current local morph target weights of the pose.
Definition Model.hpp:735