This release adds support for rendering models with baked lightmaps using secondary UV channel. Additionally fix of specular highlights intensity when using specular color textures is also included in this release.
--disable-uv2
(-duv2
), using which you can disable export of second UV channel (if defined). This option is true
by default (second UV channel is disabled)._log.txt
file created during model conversion now describes vertex format of each mesh.BBMOD_VertexFormat
's constructor can now be a struct with keys called after properties of BBMOD_VertexFormat
and values true
or false
, depending on whether the vertex format should or should not have the property.TextureCoords2
to struct BBMOD_VertexFormat
, which tells whether the vertex format has a second UV channel._versionMinor
to bbmod_vertex_format_load
, which is the minor version of a BBMOD file that the vertex format is being loaded from.bbmod_light_ambient_get_affect_lightmaps
and bbmod_light_ambient_set_affect_lightmaps
, using which you can get/set whether the ambient light affects materials that use baked lightmaps. By default this is enabled.AffectLightmaps
to struct BBMOD_Light
, using which you can enable/disable the light for materials that use baked lightmaps. By default this is enabled.get_disable_uv2
to struct BBMOD_DLL
, using which you can check whether second UV channel is disabled.set_disable_uv2
to struct BBMOD_DLL
, using which you can enable/disable second UV channel.BBMOD_LightmapShader
, which is a wrapper for shaders used by lightmapped materials.BBMOD_LightmapMaterial
, which is a material that can be used when rendering models with two UV channels, the second one being used for lightmaps.BBMOD_VFORMAT_LIGHTMAP
, which is a vertex format of models with two UV channels, the second one being used for lightmaps.BBMOD_SHADER_LIGHTMAP
, which is a shader for rendering models with two UV channels, the second one being used for lightmaps.BBMOD_SHADER_LIGHTMAP_DEPTH
, which is a depth shader for lightmapped models with two UV channels.BBMOD_SHADER_LIGHTMAP_INSTANCE_ID
, which is a shader used when rendering instance IDs for lightmapped models.BBMOD_MATERIAL_LIGHTMAP
, which is a material for models with two UV channels, the second one being used for lightmaps.bbmod_lightmap_get
and bbmod_lightmap_set
, using which you can get/set the default lightmap texture used by all lightmapped materials (unless they override it).Copyright © 2023, BlueBurn. Built on May 02, 2023 using GMDoc.