SG_Texture
—
Agar-SG texture object
#include <agar/core.h>
#include <agar/sg.h>
The SG_Texture
object describes texture
information which may be attached to
SG_Object(3)
nodes in a
SG(3)
scene. Materials have the following properties:
- Texture image (one surface, or multiple blended surfaces).
- Emissive, ambient, diffuse and specular color components.
- Shininess (specular exponent).
- Ties to fragment shader programs (see
SG_Program(3)).
For the SG_Texture
object:
- M_Color emissive
- Light emitted by surface (Ke)
- M_Color ambient
- Ambient reflectance (Ka)
- M_Color diffuse
- Diffuse reflectance (Kd)
- M_Color specular
- Specular reflectance (Ks)
- M_Real shininess
- Specular exponent
- AG_Surface *surfaces
- Input surface(s)
- Uint nSurfaces
- Input surface count
The SG_Texture
object first appeared in
Agar 1.6.0.