jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
373 stars 35 forks source link

ogt_vox: material property _media_type not handled yet #64

Open mgerhardy opened 6 months ago

mgerhardy commented 6 months ago

It looks like there are some new or unhandled material properties for blend, glass and cloud materials

material prop possible values
_media_type _scatter, _emit, _sss (default is absorb - if _media_type is not available)
value desc
_sss Subsurface Scattering Media
_scatter Scatter Media
_emit Emissive Media
// media type for blend, glass and cloud materials
enum ogt_media_type {
  ogt_media_type_absorb,  // Absorb media
  ogt_media_type_scatter, // Scatter media
  ogt_media_type_emit,    // Emissive media
  ogt_media_type_sss,     // Subsurface scattering media
};

Example files:

(I still wonder whether it makes sense to give low level access to the dict data in the scene to support future values)