Skip to content

Commit

Permalink
FEATURE: Forgot to document the new standard for the mapping channels…
Browse files Browse the repository at this point in the history
… together with culling support:

Ambient Color - Lightmap
Diffuse Color - Albedo
Specular Color - Metallic
Glossiness - Roughness
Bump - Normal map
Displacement - Height map
Self Illumination - Emissive map and ambient occlusion (emissive rgb, AO in the alpha channel)
(Texture packer when exporting maybe? BC1 Compression)
  • Loading branch information
albertoamo committed Apr 23, 2018
1 parent 5538ed7 commit fb46dfd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions maxscript/MCVExportScene.ms
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ struct TSceneExporter (
fs.writeKeyValue "name" obj.name
),

fn exportAABB obj = (
fs.writeKeyValue "abs_aabb" true
fs.writeComma()
fs.writeKeyValue "local_aabb" true
),

fn isValidName aname = (
return findString aname " " == undefined
Expand Down Expand Up @@ -385,6 +390,9 @@ struct TSceneExporter (
exportCompCollider child
)
)

fs.writeComma()
exportAABB obj
),

fn createLightCollider obj = (
Expand Down

0 comments on commit fb46dfd

Please sign in to comment.