Skip to content

Commit

Permalink
Merge branch 'main' into adsk/use_subsurface_lobe_in_dielectric_albedo
Browse files Browse the repository at this point in the history
  • Loading branch information
jstone-lucasfilm authored Nov 26, 2024
2 parents d20bd8e + 344705f commit 9c1dad4
Show file tree
Hide file tree
Showing 40 changed files with 17 additions and 488 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ option(MATERIALX_TEST_RENDER "Run rendering tests for MaterialX Render module. G
option(MATERIALX_WARNINGS_AS_ERRORS "Interpret all compiler warnings as errors." OFF)
option(MATERIALX_COVERAGE_ANALYSIS "Build MaterialX libraries with coverage analysis on supporting platforms." OFF)
option(MATERIALX_DYNAMIC_ANALYSIS "Build MaterialX libraries with dynamic analysis on supporting platforms." OFF)
option(MATERIALX_OSL_LEGACY_CLOSURES "Build OSL shader generation supporting the legacy OSL closures." OFF)

option(MATERIALX_BUILD_IOS "Build MaterialX for iOS. (Deprecated. Set CMAKE_SYSTEM_NAME instead)" OFF)
option(MATERIALX_BUILD_APPLE_FRAMEWORK "Build MaterialX as an Apple Framework" ${__build_apple_framework})
Expand Down Expand Up @@ -180,7 +179,6 @@ mark_as_advanced(MATERIALX_PYTHON_EXECUTABLE)
mark_as_advanced(MATERIALX_PYTHON_OCIO_DIR)
mark_as_advanced(MATERIALX_PYTHON_PYBIND11_DIR)
mark_as_advanced(MATERIALX_OIIO_DIR)
mark_as_advanced(MATERIALX_OSL_LEGACY_CLOSURES)
mark_as_advanced(MATERIALX_OSL_BINARY_OSLC)
mark_as_advanced(MATERIALX_OSL_BINARY_TESTRENDER)
mark_as_advanced(MATERIALX_OSL_INCLUDE_PATH)
Expand Down Expand Up @@ -227,9 +225,6 @@ if(MATERIALX_BUILD_RENDER AND MATERIALX_BUILD_GEN_OSL AND MATERIALX_BUILD_TESTS)
endif()

# Add global definitions
if (MATERIALX_OSL_LEGACY_CLOSURES)
add_definitions(-DMATERIALX_OSL_LEGACY_CLOSURES)
endif()
if(MATERIALX_BUILD_OIIO)
add_definitions(-DMATERIALX_BUILD_OIIO)
endif()
Expand Down
10 changes: 2 additions & 8 deletions libraries/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
if (MATERIALX_OSL_LEGACY_CLOSURES)
set(PBRLIB_SUFFIX "legacy")
else()
set(PBRLIB_SUFFIX "mtlx")
endif()

if(NOT SKBUILD)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION "${MATERIALX_INSTALL_STDLIB_PATH}"
PATTERN "CMakeLists.txt" EXCLUDE
PATTERN "pbrlib_genosl_impl.*" EXCLUDE)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pbrlib/genosl/pbrlib_genosl_impl.${PBRLIB_SUFFIX}"
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pbrlib/genosl/pbrlib_genosl_impl.mtlx"
DESTINATION "${MATERIALX_INSTALL_STDLIB_PATH}/pbrlib/genosl/" RENAME pbrlib_genosl_impl.mtlx)
endif()

Expand All @@ -23,6 +17,6 @@ if(MATERIALX_BUILD_PYTHON)
DESTINATION "${MATERIALX_PYTHON_LIBRARIES_PATH}"
PATTERN "CMakeLists.txt" EXCLUDE
PATTERN "pbrlib_genosl_impl.*" EXCLUDE)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pbrlib/genosl/pbrlib_genosl_impl.${PBRLIB_SUFFIX}"
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/pbrlib/genosl/pbrlib_genosl_impl.mtlx"
DESTINATION "${MATERIALX_PYTHON_LIBRARIES_PATH}/pbrlib/genosl/" RENAME pbrlib_genosl_impl.mtlx)
endif()
3 changes: 0 additions & 3 deletions libraries/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,4 @@ This folder contains the standard data libraries for MaterialX, providing declar
- Basic GLSL and MSL `lightshader` node definitions and implementations are provided for the following light types:
- point, directional, spot
- Shader generation does not currently support:
- `ambientocclusion` node.
- `arrayappend` node.
- `curveadjust` node.
- `displacementshader` and `volumeshader` nodes for hardware shading targets (GLSL, MSL).
5 changes: 0 additions & 5 deletions libraries/pbrlib/genosl/legacy/mx_anisotropic_vdf.osl

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/pbrlib/genosl/legacy/mx_burley_diffuse_bsdf.osl

This file was deleted.

32 changes: 0 additions & 32 deletions libraries/pbrlib/genosl/legacy/mx_conductor_bsdf.osl

This file was deleted.

36 changes: 0 additions & 36 deletions libraries/pbrlib/genosl/legacy/mx_dielectric_bsdf.osl

This file was deleted.

38 changes: 0 additions & 38 deletions libraries/pbrlib/genosl/legacy/mx_generalized_schlick_bsdf.osl

This file was deleted.

5 changes: 0 additions & 5 deletions libraries/pbrlib/genosl/legacy/mx_oren_nayar_diffuse_bsdf.osl

This file was deleted.

24 changes: 0 additions & 24 deletions libraries/pbrlib/genosl/legacy/mx_sheen_bsdf.osl

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/pbrlib/genosl/legacy/mx_subsurface_bsdf.osl

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/pbrlib/genosl/legacy/mx_surface.osl

This file was deleted.

5 changes: 0 additions & 5 deletions libraries/pbrlib/genosl/legacy/mx_translucent_bsdf.osl

This file was deleted.

74 changes: 0 additions & 74 deletions libraries/pbrlib/genosl/pbrlib_genosl_impl.legacy

This file was deleted.

6 changes: 0 additions & 6 deletions libraries/stdlib/genglsl/stdlib_genglsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@
<implementation name="IM_worleynoise3d_vector2_genglsl" nodedef="ND_worleynoise3d_vector2" file="mx_worleynoise3d_vector2.glsl" function="mx_worleynoise3d_vector2" target="genglsl" />
<implementation name="IM_worleynoise3d_vector3_genglsl" nodedef="ND_worleynoise3d_vector3" file="mx_worleynoise3d_vector3.glsl" function="mx_worleynoise3d_vector3" target="genglsl" />

<!-- ======================================================================== -->
<!-- Global nodes -->
<!-- ======================================================================== -->

<!-- <ambientocclusion> -->

<!-- ======================================================================== -->
<!-- Geometric nodes -->
<!-- ======================================================================== -->
Expand Down
7 changes: 0 additions & 7 deletions libraries/stdlib/genmdl/stdlib_genmdl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@
<implementation name="IM_worleynoise3d_vector2_genmdl" nodedef="ND_worleynoise3d_vector2" sourcecode="materialx::stdlib_{{MDL_VERSION_SUFFIX}}::mx_worleynoise3d_float2(mxp_position:{{position}}, mxp_jitter:{{jitter}})" target="genmdl" />
<implementation name="IM_worleynoise3d_vector3_genmdl" nodedef="ND_worleynoise3d_vector3" sourcecode="materialx::stdlib_{{MDL_VERSION_SUFFIX}}::mx_worleynoise3d_float3(mxp_position:{{position}}, mxp_jitter:{{jitter}})" target="genmdl" />

<!-- ======================================================================== -->
<!-- Global nodes -->
<!-- ======================================================================== -->

<!-- <ambientocclusion> -->
<implementation name="IM_ambientocclusion_float_genmdl" nodedef="ND_ambientocclusion_float" sourcecode="materialx::stdlib_{{MDL_VERSION_SUFFIX}}::mx_ambientocclusion_float(mxp_coneangle:{{coneangle}}, mxp_maxdistance:{{maxdistance}})" target="genmdl" />

<!-- ======================================================================== -->
<!-- Geometric nodes -->
<!-- ======================================================================== -->
Expand Down
4 changes: 0 additions & 4 deletions libraries/stdlib/genmsl/stdlib_genmsl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
<!-- Procedural nodes -->
<!-- ======================================================================== -->

<!-- ======================================================================== -->
<!-- Global nodes -->
<!-- ======================================================================== -->

<!-- ======================================================================== -->
<!-- Geometric nodes -->
<!-- ======================================================================== -->
Expand Down
5 changes: 0 additions & 5 deletions libraries/stdlib/genosl/mx_ambientocclusion_float.osl

This file was deleted.

7 changes: 0 additions & 7 deletions libraries/stdlib/genosl/stdlib_genosl_impl.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@
<implementation name="IM_worleynoise3d_vector2_genosl" nodedef="ND_worleynoise3d_vector2" file="mx_worleynoise3d_vector2.osl" function="mx_worleynoise3d_vector2" target="genosl" />
<implementation name="IM_worleynoise3d_vector3_genosl" nodedef="ND_worleynoise3d_vector3" file="mx_worleynoise3d_vector3.osl" function="mx_worleynoise3d_vector3" target="genosl" />

<!-- ======================================================================== -->
<!-- Global nodes -->
<!-- ======================================================================== -->

<!-- <ambientocclusion> -->
<implementation name="IM_ambientocclusion_float_genosl" nodedef="ND_ambientocclusion_float" file="mx_ambientocclusion_float.osl" function="mx_ambientocclusion_float" target="genosl" />

<!-- ======================================================================== -->
<!-- Geometric nodes -->
<!-- ======================================================================== -->
Expand Down
Loading

0 comments on commit 9c1dad4

Please sign in to comment.