|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a 3D quadrilateral instance, optionally textured, to draw. More...
#include <GREM/graphics_3d/Instances3D.hpp>
Public Attributes | |
| const Texture * | texture = nullptr |
| Non-owning pointer to a texture to apply to the quad, or nullptr to use a fully white texture. | |
| vec3 | position {0.0f, 0.0f, 0.0f} |
| Position, in world coordinates, to draw the quad at. | |
| quat | orientation {0.0f, 0.0f, 0.0f, 1.0f} |
| Rotation of the quad around its QuadInstance3D::origin. | |
| vec2 | size {1.0f, 1.0f} |
| Size of the quad, in world coordinates. | |
| vec2 | origin {0.0f, 0.0f} |
| Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the quad. | |
| vec2 | textureOffset {0.0f, 0.0f} |
| Offset, in texture coordinates, to apply to the texture coordinates before sampling the texture. | |
| mat2 | textureBasis {1.0f} |
| Texture coordinate basis to scale/rotate/shear the texture coordinates by before sampling the texture. | |
| 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 quad's distance from the camera, which is used for distance ordering when drawing transparent meshes. | |
Configuration of a 3D quadrilateral instance, optionally textured, to draw.
| const Texture* grem::graphics::QuadInstance3D::texture = nullptr |
Non-owning pointer to a texture to apply to the quad, or nullptr to use a fully white texture.
| vec3 grem::graphics::QuadInstance3D::position {0.0f, 0.0f, 0.0f} |
Position, in world coordinates, to draw the quad at.
| quat grem::graphics::QuadInstance3D::orientation {0.0f, 0.0f, 0.0f, 1.0f} |
Rotation of the quad around its QuadInstance3D::origin.
| vec2 grem::graphics::QuadInstance3D::size {1.0f, 1.0f} |
Size of the quad, in world coordinates.
| vec2 grem::graphics::QuadInstance3D::origin {0.0f, 0.0f} |
Offset, in local vertex coordinates, specifying the origin relative to the bottom left of the quad.
For example, a value of (0.5, 0.5) corresponds to the middle of the quad.
| vec2 grem::graphics::QuadInstance3D::textureOffset {0.0f, 0.0f} |
Offset, in texture coordinates, to apply to the texture coordinates before sampling the texture.
| mat2 grem::graphics::QuadInstance3D::textureBasis {1.0f} |
Texture coordinate basis to scale/rotate/shear the texture coordinates by before sampling the texture.
| Color grem::graphics::QuadInstance3D::color = Color::WHITE |
Tint color to use in the shader.
When no texture is specified, this effectively controls the base color of the quad.
| Color grem::graphics::QuadInstance3D::emissiveColor = Color::INVISIBLE |
Emissive color to use in the shader.
| float grem::graphics::QuadInstance3D::distanceOrderingBias = 0.0f |
Bias to subtract from the quad's distance from the camera, which is used for distance ordering when drawing transparent meshes.