Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ogre Next (aka v2) JSON material support #178

Merged
merged 2 commits into from
May 7, 2023

Commits on May 7, 2023

  1. Ogre Next (aka v2) JSON material support

     - Added ogre.materialsv2json module with dot_materialsv2json() with
       same usage as ogre.material.dot_materials()
     - Added config option MATERIALS_V2JSON to switch to v2 materials
     - Support for a metallic workflow only via PrincipledBSDFWrapper
       - Sets the diffuse, emissive, metalness, roughness, specular,
         transparency, alpha_test, two_sided and workflow as required
       - Leaves default the blendblock, macroblock, sampler,
         shadow_const_bias, brdf, detail_diffuse[x], detail_normal[x],
         detail_weight[x], fresnel, receive_shadows, reflection
    
     - Uses material.gather_metallic_roughness_texture()
     - Implements channel separation in util.image_magick()
    jamieson committed May 7, 2023
    Configuration menu
    Copy the full SHA
    1d96662 View commit details
    Browse the repository at this point in the history
  2. Ogre Next (aka v2) JSON material support

    Per review:
     - Check detect_converter_type() instead of config param
     - Remove MATERIALS_V2JSON config param
     - Remove emission_strength_texture support (Blender 2.9+ only)
     - Update README and MaterialsJSON.md to reflect changes
    jamieson committed May 7, 2023
    Configuration menu
    Copy the full SHA
    416ae66 View commit details
    Browse the repository at this point in the history