Expand description
Constants for asset paths, cache magic, shader/mesh metadata.
These are used by [optic_file] and [optic_render] to resolve
asset locations and validate cache files.
Constantsยง
- ASSET
- Root asset directory.
- FRAG
- Fragment shader file extension.
- GLSL
- GLSL shader file extension.
- MESH_
ASSET - Mesh asset directory.
- MESH_
FLAG_ HAS_ NORMALS - Bitflag: mesh has normal data.
- MESH_
FLAG_ HAS_ UVS - Bitflag: mesh has UV data.
- OBJ
- Wavefront OBJ mesh file extension.
- OMESH
- Optic cached mesh extension.
- OPTIC_
CACHE_ VERSION - Version of the binary cache format.
- OPTIC_
MAGIC - Magic signature for all optic engine binary cache files (8 bytes).
- OSHDR
- Optic cached shader extension.
- OTXTR
- Optic cached texture extension.
- PNG
- PNG image file extension.
- SHADER_
COMPUTE - Shader file sub-type discriminator for compute shaders.
- SHADER_
PIPELINE - Shader file sub-type discriminator for pipeline shaders.
- SHDR_
ASSET - Shader asset directory.
- TEMP
- Temporary asset directory.
- TXTR_
ASSET - Texture asset directory.
- VERT
- Vertex shader file extension.