|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a 3D sprite instance from a SpriteAtlas to draw. More...
#include <GREM/graphics_3d/Instances3D.hpp>
Public Attributes | |
| vec3 | position {0.0f, 0.0f, 0.0f} |
| Position, in world coordinates, to draw the sprite at. | |
| quat | orientation {0.0f, 0.0f, 0.0f, 1.0f} |
| Rotation of the sprite around its SpriteInstance3D::origin. | |
| vec2 | size {1.0f, 1.0f} |
| Size of the sprite, in world coordinates. | |
| vec2 | origin {0.0f, 0.0f} |
| Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the sprite. | |
| Color | color = Color::WHITE |
| Tint color to use in the shader. | |
| Color | emissiveColor = Color::INVISIBLE |
| Emissive color to use in the shader. | |
| float | distanceOrderingBias = 0.0f |
| Bias to subtract from the sprite's distance from the camera, which is used for distance ordering when drawing transparent meshes. | |
Configuration of a 3D sprite instance from a SpriteAtlas to draw.
| vec3 grem::graphics::SpriteInstance3D::position {0.0f, 0.0f, 0.0f} |
Position, in world coordinates, to draw the sprite at.
| quat grem::graphics::SpriteInstance3D::orientation {0.0f, 0.0f, 0.0f, 1.0f} |
Rotation of the sprite around its SpriteInstance3D::origin.
| vec2 grem::graphics::SpriteInstance3D::size {1.0f, 1.0f} |
Size of the sprite, in world coordinates.
| vec2 grem::graphics::SpriteInstance3D::origin {0.0f, 0.0f} |
Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the sprite.
For example, a value of (0.5, 0.5) corresponds to the middle of the sprite.
| Color grem::graphics::SpriteInstance3D::color = Color::WHITE |
Tint color to use in the shader.
| Color grem::graphics::SpriteInstance3D::emissiveColor = Color::INVISIBLE |
Emissive color to use in the shader.
| float grem::graphics::SpriteInstance3D::distanceOrderingBias = 0.0f |
Bias to subtract from the sprite's distance from the camera, which is used for distance ordering when drawing transparent meshes.