diff --git a/assets/scene_usds/ebench/long_horizon/scene_bottle/scene (copy).usd b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene (copy).usd new file mode 100644 index 0000000000000000000000000000000000000000..dc057d80106c801e5742d994694a67734fa1de0e Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene (copy).usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..5003513550c46f4bd7cf5374d48fed6b2f226049 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_bottle/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..04ea68d1e0866e9ccf312e3f9e1787a17beb6749 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_detergent/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/10.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/10.usda new file mode 100644 index 0000000000000000000000000000000000000000..7cfaa16544479849dc1f49e1410b01676314e12b --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/10.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_10" ( + prepend payload = @./10.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/11.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/11.usda new file mode 100644 index 0000000000000000000000000000000000000000..0b7bf7568a350772930220a4f740b34a4a9e9b95 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/11.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_11" ( + prepend payload = @./11.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usd b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usd new file mode 100644 index 0000000000000000000000000000000000000000..36dfe27295accb01356c9c5c1b74192ac3399ee8 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usda new file mode 100644 index 0000000000000000000000000000000000000000..03cff7592eaeb8a0a9dd9f6e188649f8a534c415 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/14.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_14" ( + prepend payload = @./14.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/3.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/3.usda new file mode 100644 index 0000000000000000000000000000000000000000..04a5518f32ecae6521ad7615ed7c90b7070537e7 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/3.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_3" ( + prepend payload = @./3.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/4.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/4.usda new file mode 100644 index 0000000000000000000000000000000000000000..2c68f5ec4389848c69d3a8536f4cafdaa5b006b0 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/4.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_4" ( + prepend payload = @./4.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/5.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/5.usda new file mode 100644 index 0000000000000000000000000000000000000000..2a1e725dd0cc3360fc56675ee4a7a32a41b843ee --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/5.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_5" ( + prepend payload = @./5.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/6.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/6.usda new file mode 100644 index 0000000000000000000000000000000000000000..6cca4d35491fd865c366196ace0359c9b2163acd --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/6.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_6" ( + prepend payload = @./6.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/7.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/7.usda new file mode 100644 index 0000000000000000000000000000000000000000..944d5ee2c07f6698afd10673e0d7da82696b13b0 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/7.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_7" ( + prepend payload = @./7.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/MWAX5JYKTKJZ2AABAAAAABY8_usd_living_room_0.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/MWAX5JYKTKJZ2AABAAAAABY8_usd_living_room_0.usda new file mode 100644 index 0000000000000000000000000000000000000000..2c30c35cf4e28fee9724d72bf13352731bc3eb09 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/MWAX5JYKTKJZ2AABAAAAABY8_usd_living_room_0.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_MWAX5JYKTKJZ2AABAAAAABY8_usd_living_room_0" ( + prepend payload = @./MWAX5JYKTKJZ2AABAAAAABY8_usd_living_room_0.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..18e1f3f600baf99565b52489093665a87a4235c6 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/KooPbr.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/KooPbr.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5e993afd51fcee2e32fb4d95cd3570aff2eb9405 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/KooPbr.mdl @@ -0,0 +1,462 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::anno::*; +import ::df::*; +import ::df::color_weighted_layer; +import ::math::*; +import ::state::*; + +export material KooMtl2Sided( + material frontMtl = material() [[ + anno::in_group("Parameters"), + anno::display_name("Front material") + ]], + material backMtl = frontMtl [[ + anno::in_group("Parameters"), + anno::display_name("Back material") + ]], + uniform bool use_backMtl = false [[ + anno::in_group("Parameters"), + anno::display_name("Use back material") + ]], + color translucency = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Basic parameters"), + anno::display_name("Translucency") + ]], + color front_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Front tint"), + anno::hidden() + ]], + color back_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Back tint"), + anno::hidden() + ]], + uniform bool multiply_by_front_diffuse = false [[ + anno::in_group("Basic parameters"), + anno::display_name("Multiply by front diffuse"), + anno::unused(), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + bsdf transmission_bsdf = + df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f); + + bsdf front_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : frontMtl.surface.scattering + ); + + bsdf back_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : backMtl.surface.scattering + ); + } in + material( + thin_walled: true, + ior: frontMtl.ior, + surface: material_surface(scattering: front_bsdf), + backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf), + volume: frontMtl.volume, + geometry: frontMtl.geometry + ); + +float emissive_multiplier() uniform +[[ + anno::description("unit conversion from pbrjson emission to mdl"), + anno::noinline() +]] +{ + return 2560.f; +} + +export material KooLightMtl( + color emission = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Emission") + ]], + uniform float emission_mult = 1.f [[ + anno::in_group("Parameters"), + anno::display_name("Mutliplier") + ]], + color opacity = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Opacity") + ]], + uniform bool emit_on_backside = false [[ + anno::in_group("Parameters"), + anno::display_name("Emit light on back side") + ]]) +[[ + anno::author("KooLab") +]] + = + let { + color emission_color = (emission*opacity)*emission_mult * emissive_multiplier(); + + bsdf surface_bsdf = + df::simple_glossy_bsdf + ( + mode: df::scatter_transmit, + tint: color(1.f) - opacity, + roughness_u: 0 + ); + + material_surface emit_surface = material_surface( + scattering: surface_bsdf, + emission: material_emission( + emission: df::diffuse_edf(), + intensity: emission_color) + ); + } in + material( + thin_walled: emit_on_backside, + ior: color(1.f), + surface: emit_surface, + backface: emit_on_backside ? emit_surface : material_surface() + ); + +export material KooMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::hard_range(0.2f, 5.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-Illumination Intensity") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.0f + ), + normal : texmap_bump + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material + ( + ior : color(refr_ior), + thin_walled : thin_walled, + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry + ( + cutout_opacity: opacity + ) + ); + +export material KooTranslucentMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("Diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("Reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::soft_range(0.2, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + color refract = color(0.f, 0.f, 0.f) [[ + anno::in_group("Refractions"), + anno::display_name("Refract") + ]], + float refract_glossiness = 1.f [[ + anno::in_group("Refractions"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Multiplier") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float texmap_opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.f + ), + normal : texmap_bump + ); + + bsdf glossy_transmission_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_transmit, + tint: color(1.f), + roughness_u: refraction_roughness + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : + df::color_weighted_layer + ( + weight : refract, + layer : glossy_transmission_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material( + thin_walled : thin_walled, + ior : color(refr_ior), + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry(cutout_opacity: texmap_opacity) + ); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd0140eb7c0001b6b6ed.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd0140eb7c0001b6b6ed.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d4741ac3a662156bf769df69291b0ad8396ccdc5 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd0140eb7c0001b6b6ed.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6576cd0140eb7c0001b6b6ed(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.007799999788f, 0.007799999788f, 0.007799999788f), + reflect: color(0.3799999952f, 0.3799999952f, 0.3799999952f), + reflect_glossiness: 0.8999999762f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl new file mode 100644 index 0000000000000000000000000000000000000000..6f2b72f60aa65c85fd19ced218bc42144b3d4365 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6576cd09a9943b0001ca97b0(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,10,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.638800025f, 0.5924000144f, 0.5541999936f), + reflect: color(0.0390000008f, 0.0390000008f, 0.0390000008f), + reflect_glossiness: 0.8000000119f, + fresnel: true, + fresnel_ior: 1.519999981f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.519999981f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl new file mode 100644 index 0000000000000000000000000000000000000000..261c92d3e6f25322a94b8d8866c2dfe7e80b3a5c --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num58ca739e5c26a005ae14274e( + uniform texture_2d Normal_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num613e3bde3e8f6d0001279e90.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num613e3bde3e8f6d0001279e90.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f8f1b21a3e67416ca33cb12f234d13a82de10b10 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num613e3bde3e8f6d0001279e90.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num613e3bde3e8f6d0001279e90( + uniform texture_2d Normal_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num6528031d1ea6be000148b7dd.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num6528031d1ea6be000148b7dd.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9cc42fe3776d7a7cabc57516fed17e6f6a03a94e --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/Num6528031d1ea6be000148b7dd.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num6528031d1ea6be000148b7dd( + uniform texture_2d Normal_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/model_9938e4a048e8362cb22105425b506d4a_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/model_9938e4a048e8362cb22105425b506d4a_0.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/model_9938e4a048e8362cb22105425b506d4a_0.usda new file mode 100644 index 0000000000000000000000000000000000000000..2116b091c2548caf2b8f33c60683ae04964e2fe0 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/SubUSDs/model_9938e4a048e8362cb22105425b506d4a_0.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_model_9938e4a048e8362cb22105425b506d4a_0" ( + prepend payload = @./model_9938e4a048e8362cb22105425b506d4a_0.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..b88321dcdbe5c6d10067207354c5d2f94dc5b186 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dish/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..c7c63ee7d14b593dc415b1d3ae2c52c7d082c26b Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_dishwasher/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/0.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/0.usda new file mode 100644 index 0000000000000000000000000000000000000000..9f5f5b60d67e98e22e1625d3648ef483e87284e5 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/0.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_0" ( + prepend payload = @./0.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/1.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/1.usda new file mode 100644 index 0000000000000000000000000000000000000000..8510577eccc1abcb351ec7258d76d1628f076dda --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/1.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_1" ( + prepend payload = @./1.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/2.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/2.usda new file mode 100644 index 0000000000000000000000000000000000000000..e9c73ec7e466c3704cb0566c852d44d8581df9e3 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/2.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_2" ( + prepend payload = @./2.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/4.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/4.usda new file mode 100644 index 0000000000000000000000000000000000000000..2c68f5ec4389848c69d3a8536f4cafdaa5b006b0 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/4.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_4" ( + prepend payload = @./4.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/9.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/9.usda new file mode 100644 index 0000000000000000000000000000000000000000..5d52042419ee03e383104f71e3f3e474656ac2ae --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/9.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_9" ( + prepend payload = @./9.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/MV7J6NIKTKJZ2AABAAAAAEI8_usd_dinning_room_1.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/MV7J6NIKTKJZ2AABAAAAAEI8_usd_dinning_room_1.usda new file mode 100644 index 0000000000000000000000000000000000000000..196d9d6a404c9f9fd763c021ce2215aba60a09cd --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/MV7J6NIKTKJZ2AABAAAAAEI8_usd_dinning_room_1.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_MV7J6NIKTKJZ2AABAAAAAEI8_usd_dinning_room_1" ( + prepend payload = @./MV7J6NIKTKJZ2AABAAAAAEI8_usd_dinning_room_1.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ca9ae1cd2dedf073da98d1275acf809ef2b8a13f --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/KooPbr.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/KooPbr.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5e993afd51fcee2e32fb4d95cd3570aff2eb9405 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/KooPbr.mdl @@ -0,0 +1,462 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::anno::*; +import ::df::*; +import ::df::color_weighted_layer; +import ::math::*; +import ::state::*; + +export material KooMtl2Sided( + material frontMtl = material() [[ + anno::in_group("Parameters"), + anno::display_name("Front material") + ]], + material backMtl = frontMtl [[ + anno::in_group("Parameters"), + anno::display_name("Back material") + ]], + uniform bool use_backMtl = false [[ + anno::in_group("Parameters"), + anno::display_name("Use back material") + ]], + color translucency = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Basic parameters"), + anno::display_name("Translucency") + ]], + color front_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Front tint"), + anno::hidden() + ]], + color back_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Back tint"), + anno::hidden() + ]], + uniform bool multiply_by_front_diffuse = false [[ + anno::in_group("Basic parameters"), + anno::display_name("Multiply by front diffuse"), + anno::unused(), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + bsdf transmission_bsdf = + df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f); + + bsdf front_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : frontMtl.surface.scattering + ); + + bsdf back_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : backMtl.surface.scattering + ); + } in + material( + thin_walled: true, + ior: frontMtl.ior, + surface: material_surface(scattering: front_bsdf), + backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf), + volume: frontMtl.volume, + geometry: frontMtl.geometry + ); + +float emissive_multiplier() uniform +[[ + anno::description("unit conversion from pbrjson emission to mdl"), + anno::noinline() +]] +{ + return 2560.f; +} + +export material KooLightMtl( + color emission = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Emission") + ]], + uniform float emission_mult = 1.f [[ + anno::in_group("Parameters"), + anno::display_name("Mutliplier") + ]], + color opacity = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Opacity") + ]], + uniform bool emit_on_backside = false [[ + anno::in_group("Parameters"), + anno::display_name("Emit light on back side") + ]]) +[[ + anno::author("KooLab") +]] + = + let { + color emission_color = (emission*opacity)*emission_mult * emissive_multiplier(); + + bsdf surface_bsdf = + df::simple_glossy_bsdf + ( + mode: df::scatter_transmit, + tint: color(1.f) - opacity, + roughness_u: 0 + ); + + material_surface emit_surface = material_surface( + scattering: surface_bsdf, + emission: material_emission( + emission: df::diffuse_edf(), + intensity: emission_color) + ); + } in + material( + thin_walled: emit_on_backside, + ior: color(1.f), + surface: emit_surface, + backface: emit_on_backside ? emit_surface : material_surface() + ); + +export material KooMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::hard_range(0.2f, 5.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-Illumination Intensity") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.0f + ), + normal : texmap_bump + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material + ( + ior : color(refr_ior), + thin_walled : thin_walled, + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry + ( + cutout_opacity: opacity + ) + ); + +export material KooTranslucentMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("Diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("Reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::soft_range(0.2, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + color refract = color(0.f, 0.f, 0.f) [[ + anno::in_group("Refractions"), + anno::display_name("Refract") + ]], + float refract_glossiness = 1.f [[ + anno::in_group("Refractions"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Multiplier") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float texmap_opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.f + ), + normal : texmap_bump + ); + + bsdf glossy_transmission_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_transmit, + tint: color(1.f), + roughness_u: refraction_roughness + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : + df::color_weighted_layer + ( + weight : refract, + layer : glossy_transmission_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material( + thin_walled : thin_walled, + ior : color(refr_ior), + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry(cutout_opacity: texmap_opacity) + ); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd0933071a0001d129da.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd0933071a0001d129da.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3f8ea0132d466876db7e22b3ec34d8734f9e73d7 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd0933071a0001d129da.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6576cd0933071a0001d129da(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.007799999788f, 0.007799999788f, 0.007799999788f), + reflect: color(0.05900000036f, 0.05900000036f, 0.05900000036f), + reflect_glossiness: 0.8999999762f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd09a38875000154215b.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd09a38875000154215b.mdl new file mode 100644 index 0000000000000000000000000000000000000000..21cf5080c312b6019941083ff8e51f029cf44cb1 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/MI_6576cd09a38875000154215b.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6576cd09a38875000154215b(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.7332999706f, 0.6510000229f, 0.6234999895f), + reflect: color(0.07999999821f, 0.07999999821f, 0.07999999821f), + reflect_glossiness: 0.8000000119f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5d8344a95b8969000133b8a7.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5d8344a95b8969000133b8a7.mdl new file mode 100644 index 0000000000000000000000000000000000000000..88d5a2ee43ff58ff552aef1377d03fc7d88bd650 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5d8344a95b8969000133b8a7.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5d8344a95b8969000133b8a7( + uniform texture_2d Normal_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5e7cded4c3afb9000149674f.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5e7cded4c3afb9000149674f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e417673f46faaba0df108baafea98c6c8dc142ae --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/Num5e7cded4c3afb9000149674f.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5e7cded4c3afb9000149674f( + uniform texture_2d Normal_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/model_eef587b5c4bcc52eb1400975c3c71e90_0/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/model_eef587b5c4bcc52eb1400975c3c71e90_0.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/model_eef587b5c4bcc52eb1400975c3c71e90_0.usda new file mode 100644 index 0000000000000000000000000000000000000000..298de63ed9e79876de10e7392dd90ed372da5f40 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/SubUSDs/model_eef587b5c4bcc52eb1400975c3c71e90_0.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_model_eef587b5c4bcc52eb1400975c3c71e90_0" ( + prepend payload = @./model_eef587b5c4bcc52eb1400975c3c71e90_0.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/apple/normalize_outer_scale.py b/assets/scene_usds/ebench/long_horizon/scene_fruit/apple/normalize_outer_scale.py new file mode 100644 index 0000000000000000000000000000000000000000..476813614444fe948c997c35ddb1b958200fd90c --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/apple/normalize_outer_scale.py @@ -0,0 +1,221 @@ +#!/usr/bin/env -S uv run --script +# /// script +# dependencies = ["usd-core>=24.11"] +# /// +""" +Push each top-level prim's local scale into its direct Xform children, multiply +the child's own local scale by an extra factor, then reset the top-level scale +to identity. +""" + +from __future__ import annotations + +from argparse import ArgumentParser +from pathlib import Path +from typing import Sequence + +from pxr import Gf, Usd, UsdGeom + + +def find_usd_files(root: Path) -> list[Path]: + patterns = ("*.usd", "*.usda", "*.usdc") + files: list[Path] = [] + for pattern in patterns: + files.extend(root.rglob(pattern)) + return sorted(files) + + +def get_scale_from_matrix(matrix: Gf.Matrix4d) -> tuple[float, float, float]: + rot = matrix.ExtractRotationMatrix() + return (float(rot[0].GetLength()), float(rot[1].GetLength()), float(rot[2].GetLength())) + + +def is_identity_scale(scale: Sequence[float], eps: float = 1e-6) -> bool: + return all(abs(float(v) - 1.0) <= eps for v in scale) + + +def multiply_child_scale( + child: Usd.Prim, + factor: Sequence[float], + child_scale_factor: float, +) -> None: + xform = UsdGeom.Xformable(child) + if not xform: + return + + factor_vec = Gf.Vec3f( + float(factor[0]) * child_scale_factor, + float(factor[1]) * child_scale_factor, + float(factor[2]) * child_scale_factor, + ) + + for op in xform.GetOrderedXformOps(): + if op.GetOpType() == UsdGeom.XformOp.TypeScale: + cur = op.Get() + cur_vec = Gf.Vec3f(1.0, 1.0, 1.0) if cur is None else Gf.Vec3f(cur) + op.Set(Gf.Vec3f(cur_vec[0] * factor_vec[0], cur_vec[1] * factor_vec[1], cur_vec[2] * factor_vec[2])) + return + + # If no scale op exists, rebuild the local matrix by applying the propagated + # scale and extra child factor first. + child_matrix = xform.GetLocalTransformation() + scale_matrix = Gf.Matrix4d(1.0) + scale_matrix.SetScale(Gf.Vec3d(float(factor_vec[0]), float(factor_vec[1]), float(factor_vec[2]))) + new_child_matrix = scale_matrix * child_matrix + _, _, new_scale, rot_mat, translation, _ = new_child_matrix.Factor() + xform_api = UsdGeom.XformCommonAPI(xform) + angles = rot_mat.ExtractRotation().Decompose( + Gf.Vec3d.ZAxis(), + Gf.Vec3d.YAxis(), + Gf.Vec3d.XAxis(), + ) + + for op in xform.GetOrderedXformOps(): + xform.GetPrim().RemoveProperty(op.GetAttr().GetName()) + xform.ClearXformOpOrder() + xform_api.SetTranslate(translation) + xform_api.SetRotate(Gf.Vec3f(float(angles[2]), float(angles[1]), float(angles[0]))) + xform_api.SetScale(Gf.Vec3f(float(new_scale[0]), float(new_scale[1]), float(new_scale[2]))) + + +def reset_top_scale(top: Usd.Prim) -> None: + xform = UsdGeom.Xformable(top) + if not xform: + return + + for op in xform.GetOrderedXformOps(): + if op.GetOpType() == UsdGeom.XformOp.TypeScale: + op.Set(Gf.Vec3f(1.0, 1.0, 1.0)) + return + + top_matrix = xform.GetLocalTransformation() + _, _, old_scale, rot_mat, translation, _ = top_matrix.Factor() + if is_identity_scale(old_scale): + return + + xform_api = UsdGeom.XformCommonAPI(xform) + angles = rot_mat.ExtractRotation().Decompose( + Gf.Vec3d.ZAxis(), + Gf.Vec3d.YAxis(), + Gf.Vec3d.XAxis(), + ) + + for op in xform.GetOrderedXformOps(): + xform.GetPrim().RemoveProperty(op.GetAttr().GetName()) + xform.ClearXformOpOrder() + xform_api.SetTranslate(translation) + xform_api.SetRotate(Gf.Vec3f(float(angles[2]), float(angles[1]), float(angles[0]))) + xform_api.SetScale(Gf.Vec3f(1.0, 1.0, 1.0)) + + +def normalize_stage( + path: Path, + dry_run: bool, + child_scale_factor: float, + force_child_scale: bool, +) -> bool: + stage = Usd.Stage.Open(str(path)) + if stage is None: + raise RuntimeError("Cannot open stage") + + pseudo = stage.GetPseudoRoot() + top_prims = list(pseudo.GetChildren()) + if not top_prims: + print(f"[skip] {path}: no top-level prim") + return False + + changed = False + for top in top_prims: + top_matrix = UsdGeom.Xformable(top).GetLocalTransformation() + top_scale = get_scale_from_matrix(top_matrix) + has_root_scale = not is_identity_scale(top_scale) + if not has_root_scale and not force_child_scale: + continue + + changed_children: list[str] = [] + for child in top.GetChildren(): + if not child.IsA(UsdGeom.Xform): + continue + multiply_child_scale(child, top_scale, child_scale_factor) + changed_children.append(child.GetPath().pathString) + + if not changed_children: + print(f"[skip] {path}: top={top.GetPath().pathString} scale={top_scale} no direct Xform child") + continue + + if has_root_scale: + reset_top_scale(top) + changed = True + print( + f"[update] {path}: top={top.GetPath().pathString} " + f"top_scale={top_scale} " + f"child_scale_factor={child_scale_factor} " + f"force_child_scale={force_child_scale} " + f"children={changed_children}" + ) + + if changed and not dry_run: + stage.GetRootLayer().Save() + return changed + + +def parse_args() -> tuple[Path, bool, float, bool]: + parser = ArgumentParser( + description="Push each top-level prim scale into direct Xform children, apply an extra child scale factor, and reset the top-level scale." + ) + parser.add_argument( + "--root", + type=Path, + default=Path(__file__).resolve().parent, + help="Directory to scan for usd/usda/usdc files. Default: script directory.", + ) + parser.add_argument( + "--dry-run", + action="store_true", + help="Print what would be changed without writing files.", + ) + parser.add_argument( + "--child-scale-factor", + type=float, + default=0.8, + help="Extra multiplier applied to each direct child Xform's existing local scale.", + ) + parser.add_argument( + "--force-child-scale", + action="store_true", + help="Apply the extra child scale factor even when the top-level prim scale is already identity.", + ) + args = parser.parse_args() + return args.root, args.dry_run, args.child_scale_factor, args.force_child_scale + + +def main() -> None: + root, dry_run, child_scale_factor, force_child_scale = parse_args() + usd_files = find_usd_files(root) + if not usd_files: + print(f"[warn] no usd/usda/usdc found in {root}") + return + + total = len(usd_files) + updated = 0 + for i, path in enumerate(usd_files, start=1): + print(f"({i}/{total}) {path}") + try: + if normalize_stage( + path, + dry_run=dry_run, + child_scale_factor=child_scale_factor, + force_child_scale=force_child_scale, + ): + updated += 1 + except Exception as exc: + print(f"[error] {path}: {exc}") + + if dry_run: + print(f"[dry-run] files checked: {total}, files changed: {updated}") + else: + print(f"[done] files checked: {total}, files changed: {updated}") + + +if __name__ == "__main__": + main() diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..a6e536cfa9e8f63d8ab29c2c6e8cdeabfb983c09 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_fruit/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_microwave/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_microwave/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_microwave/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..3747eb981e5cee8cc2b4b22e255a2cd46d195d41 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_pen/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_sandwich/base.usda b/assets/scene_usds/ebench/long_horizon/scene_sandwich/base.usda new file mode 100644 index 0000000000000000000000000000000000000000..9160e342a05df55ee4773635e612eff8b22ada19 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_sandwich/base.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_base" ( + prepend payload = @./base.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usd b/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usd new file mode 100644 index 0000000000000000000000000000000000000000..9b5017171419cb3afcb2e4cebd69a8138a3ae979 Binary files /dev/null and b/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usd differ diff --git a/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usda b/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usda new file mode 100644 index 0000000000000000000000000000000000000000..8509c1a6d712cebbbdcecf66792dfdb1dee99f97 --- /dev/null +++ b/assets/scene_usds/ebench/long_horizon/scene_shop/scene.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_scene" ( + prepend payload = @./scene.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2065d8e637cf60ef12e03a73082728622aaa7044 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/KooPbr.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/KooPbr.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5e993afd51fcee2e32fb4d95cd3570aff2eb9405 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/KooPbr.mdl @@ -0,0 +1,462 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::anno::*; +import ::df::*; +import ::df::color_weighted_layer; +import ::math::*; +import ::state::*; + +export material KooMtl2Sided( + material frontMtl = material() [[ + anno::in_group("Parameters"), + anno::display_name("Front material") + ]], + material backMtl = frontMtl [[ + anno::in_group("Parameters"), + anno::display_name("Back material") + ]], + uniform bool use_backMtl = false [[ + anno::in_group("Parameters"), + anno::display_name("Use back material") + ]], + color translucency = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Basic parameters"), + anno::display_name("Translucency") + ]], + color front_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Front tint"), + anno::hidden() + ]], + color back_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Back tint"), + anno::hidden() + ]], + uniform bool multiply_by_front_diffuse = false [[ + anno::in_group("Basic parameters"), + anno::display_name("Multiply by front diffuse"), + anno::unused(), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + bsdf transmission_bsdf = + df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f); + + bsdf front_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : frontMtl.surface.scattering + ); + + bsdf back_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : backMtl.surface.scattering + ); + } in + material( + thin_walled: true, + ior: frontMtl.ior, + surface: material_surface(scattering: front_bsdf), + backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf), + volume: frontMtl.volume, + geometry: frontMtl.geometry + ); + +float emissive_multiplier() uniform +[[ + anno::description("unit conversion from pbrjson emission to mdl"), + anno::noinline() +]] +{ + return 2560.f; +} + +export material KooLightMtl( + color emission = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Emission") + ]], + uniform float emission_mult = 1.f [[ + anno::in_group("Parameters"), + anno::display_name("Mutliplier") + ]], + color opacity = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Opacity") + ]], + uniform bool emit_on_backside = false [[ + anno::in_group("Parameters"), + anno::display_name("Emit light on back side") + ]]) +[[ + anno::author("KooLab") +]] + = + let { + color emission_color = (emission*opacity)*emission_mult * emissive_multiplier(); + + bsdf surface_bsdf = + df::simple_glossy_bsdf + ( + mode: df::scatter_transmit, + tint: color(1.f) - opacity, + roughness_u: 0 + ); + + material_surface emit_surface = material_surface( + scattering: surface_bsdf, + emission: material_emission( + emission: df::diffuse_edf(), + intensity: emission_color) + ); + } in + material( + thin_walled: emit_on_backside, + ior: color(1.f), + surface: emit_surface, + backface: emit_on_backside ? emit_surface : material_surface() + ); + +export material KooMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::hard_range(0.2f, 5.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-Illumination Intensity") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.0f + ), + normal : texmap_bump + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material + ( + ior : color(refr_ior), + thin_walled : thin_walled, + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry + ( + cutout_opacity: opacity + ) + ); + +export material KooTranslucentMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("Diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("Reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::soft_range(0.2, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + color refract = color(0.f, 0.f, 0.f) [[ + anno::in_group("Refractions"), + anno::display_name("Refract") + ]], + float refract_glossiness = 1.f [[ + anno::in_group("Refractions"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Multiplier") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float texmap_opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.f + ), + normal : texmap_bump + ); + + bsdf glossy_transmission_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_transmit, + tint: color(1.f), + roughness_u: refraction_roughness + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : + df::color_weighted_layer + ( + weight : refract, + layer : glossy_transmission_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material( + thin_walled : thin_walled, + ior : color(refr_ior), + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry(cutout_opacity: texmap_opacity) + ); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826530a5e870001ce8068.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826530a5e870001ce8068.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8df8f9765cd31e4703dd6f2c59b48d48f43b46ba --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826530a5e870001ce8068.mdl @@ -0,0 +1,37 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::KooPbr_maps::NormalMap_bump; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_657826530a5e870001ce8068(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,14,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.f, 0.f, 0.f), + reflect: color(0.4269999862f, 0.4269999862f, 0.4269999862f), + reflect_glossiness: 0.8500000238f, + fresnel: true, + fresnel_ior: 5.f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::NormalMap_bump(KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/6599bad98af8ac2ab5b46611d5fa240e32277_1.jpg", ::tex::gamma_linear), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), state::normal(), 1.f, 1.f, false, false, false, 1, 0.f, 0.1000000015f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265310a93f0001437459.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265310a93f0001437459.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d7bb4aecb64baaa6b67f013998606f84642af0e2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265310a93f0001437459.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6578265310a93f0001437459(*) +[[ + anno::description("{\"status\":0,\"tag\":[0],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(1.f, 1.f, 1.f), + reflect: color(0.9100000262f, 0.9100000262f, 0.9100000262f), + reflect_glossiness: 0.9300000072f, + fresnel: true, + fresnel_ior: 2.200000048f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265311bd150001eb41e4.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265311bd150001eb41e4.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cf8e9fb6e945850cb9c23c6bceee321816cea935 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265311bd150001eb41e4.mdl @@ -0,0 +1,36 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6578265311bd150001eb41e4(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.9157999754f, 0.9157999754f, 0.9157999754f), + reflect: color(0.8000000119f, 0.8000000119f, 0.8000000119f), + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, -0.5f, -0.5f, 2.f, 2.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/e82bdbe7a68f210f8ac3394dc7fc788ea5225a45_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265317d81a00010c29f9.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265317d81a00010c29f9.mdl new file mode 100644 index 0000000000000000000000000000000000000000..94b79bf678e8a1017e660aa4e108c701ec198b5a --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265317d81a00010c29f9.mdl @@ -0,0 +1,32 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_falloff; +import ::anno::description; +import ::base::texture_return; + +export material MI_6578265317d81a00010c29f9(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.8549000025f, 0.858799994f, 0.90200001f), + reflect: KooPbr_maps::KooPbr_falloff(base::texture_return(tint: color(0.f, 0.f, 0.f), mono: 1.f), base::texture_return(tint: color(1.f, 1.f, 1.f), mono: 1.f)).tint, + reflect_glossiness: 0.6499999762f, + fresnel: false, + fresnel_ior: 1.460000038f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534a62b000011d2f14.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534a62b000011d2f14.mdl new file mode 100644 index 0000000000000000000000000000000000000000..c50e6102760eb068dc4f0897e7654ec17a6beb42 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534a62b000011d2f14.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_657826534a62b000011d2f14(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.f, 0.f, 0.f), + reflect: color(0.8899999857f, 0.8899999857f, 0.8899999857f), + reflect_glossiness: 0.8999999762f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534c99360001dbf408.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534c99360001dbf408.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2ca00efb23c7e3be56fc3eec0da91c62fb08f0f7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826534c99360001dbf408.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_657826534c99360001dbf408(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.03920000046f, 0.03920000046f, 0.03920000046f), + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265355f683000151c5ab.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265355f683000151c5ab.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b3cce3840aa135f856a1bf741fe95fbe8b609abf --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265355f683000151c5ab.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6578265355f683000151c5ab(*) +[[ + anno::description("{\"status\":0,\"tag\":[0],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.5f, 0.5f, 0.5f), + reflect: color(0.1449999958f, 0.1449999958f, 0.1449999958f), + reflect_glossiness: 0.8000000119f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826535d54100001e32c72.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826535d54100001e32c72.mdl new file mode 100644 index 0000000000000000000000000000000000000000..63aff61e93c576a4fed3c7675612f66d61d4dc9b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826535d54100001e32c72.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_657826535d54100001e32c72(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.3411999941f, 0.3411999941f, 0.3411999941f), + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 0.5f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265390c49f0001be398f.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265390c49f0001be398f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fbd8a6718a16d46574df6623a3e8a9c9a34da445 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_6578265390c49f0001be398f.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooTranslucentMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6578265390c49f0001be398f(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,32,10,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooTranslucentMtl( + diffuse: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/ccc1800449a63968b5d771d92774a323c6135d0_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/d6944d2712b5e3a42e5f0c6a7f282bc2ab6ec7d_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/19833074011603dd7b754f5ed2c328be049ceec_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/8bb7197833f7495a896ea81b6f0e6d664315db2_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + refract_glossiness: 1.f, + refract_ior: 1.518000007f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + texmap_opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826539a6c3200011b5256.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826539a6c3200011b5256.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e288791633aa33b9f03f78551777ddcb3fc47050 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_657826539a6c3200011b5256.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooTranslucentMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_657826539a6c3200011b5256(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,10,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooTranslucentMtl( + diffuse: color(0.9412000179f, 0.9412000179f, 0.9412000179f), + reflect: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/b7cfaf675af5a3af4d217c717061233cf076268_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/41af32e96baf29240ee1cecaaf09c5a9e19d02a_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract: color(0.9800000191f, 0.9800000191f, 0.9800000191f), + refract_glossiness: 1.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + texmap_opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a3887500015454c0.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a3887500015454c0.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a8f7bbf0c155c448c4649269d5c7668b6a13a1b8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a3887500015454c0.mdl @@ -0,0 +1,36 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65782653a3887500015454c0(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.f, 0.f, 0.f), + reflect: color(0.8709999919f, 0.8709999919f, 0.8709999919f), + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/d35eb859bf7818ec39b700b4f4788d2bd85bf08_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a9943b0001cacb8f.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a9943b0001cacb8f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3bd6e6a185e6fd44bf3226da6cbab50178e646d5 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653a9943b0001cacb8f.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_65782653a9943b0001cacb8f(*) +[[ + anno::description("{\"status\":0,\"tag\":[0],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.8863000274f, 0.8863000274f, 0.8863000274f), + reflect: color(0.8000000119f, 0.8000000119f, 0.8000000119f), + reflect_glossiness: 0.9499999881f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653ade22a0001b5a6fc.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653ade22a0001b5a6fc.mdl new file mode 100644 index 0000000000000000000000000000000000000000..330630badc3cc3e9a3c5a685a763dc5aa41b5082 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653ade22a0001b5a6fc.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooTranslucentMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65782653ade22a0001b5a6fc(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,32,10,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooTranslucentMtl( + diffuse: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/72bb79d56a4ccb771410c73d92c3308af115bb5_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/12d1c3ace7f55796ccefcd4401567345ab72213_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/365c4d6fb113dbe3779b5f6d303ff05c659e47e_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/ac7f8d7ce21c3b0a190f8f8c7ec413259f1957e_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + refract_glossiness: 1.f, + refract_ior: 1.51699996f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + texmap_opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653d6f2be0001bb646c.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653d6f2be0001bb646c.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9b19bd77e212108e67bbbe8f72699347df5df6e8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653d6f2be0001bb646c.mdl @@ -0,0 +1,37 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65782653d6f2be0001bb646c(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.9157999754f, 0.9157999754f, 0.9157999754f), + reflect: color(0.8884999752f, 0.8884999752f, 0.8884999752f), + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/87f67610da78f601410e818f96c0ffa5e774d5b_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 2.200000048f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, 0.25f, 0.25f, 0.5f, 0.5f, 0, texture_2d("../textures/0e48bb40eb8e366928dca1739f743f3c94e0321_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.200000003f, 1.f, false, false, false, 1.f, 1.f, 0.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653e876a400018cbe4c.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653e876a400018cbe4c.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fcca7e66d0843128da02194a1a2c7a3ec6ccf3d6 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/MI_65782653e876a400018cbe4c.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_65782653e876a400018cbe4c(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(1.f, 1.f, 1.f), + reflect: color(0.1650000066f, 0.1650000066f, 0.1650000066f), + reflect_glossiness: 0.8799999952f, + fresnel: true, + fresnel_ior: 2.f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num558291a3e4b00692e7af15f0.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num558291a3e4b00692e7af15f0.mdl new file mode 100644 index 0000000000000000000000000000000000000000..80331e5ce8834c9f044f6786b7c0ac3a27bb6570 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num558291a3e4b00692e7af15f0.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num558291a3e4b00692e7af15f0( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num5e8edfead60d8f00016e6529.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num5e8edfead60d8f00016e6529.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f46e923a9f530c1feca500e3d125e208a9a0e39b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/Num5e8edfead60d8f00016e6529.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5e8edfead60d8f00016e6529( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task1/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/082e53ddb8b3d00de04a222779e602bcb7b11f_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/082e53ddb8b3d00de04a222779e602bcb7b11f_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..97ede020fd200086a3230b111dab3fd94d519242 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/082e53ddb8b3d00de04a222779e602bcb7b11f_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e471c2d1ecd5904be81ae5d7b19e24db1eea8b6bff6e24035b0c24516df3999d +size 45343 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/087b24c40339d0274dbf445f676c6642b1f65f_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/087b24c40339d0274dbf445f676c6642b1f65f_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5a827badf83ec0c7f4a52078bc28c89eaa764deb --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/087b24c40339d0274dbf445f676c6642b1f65f_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdb9b1fff979558341d546bab82d6bc2c6d627c2179c158a95d14d492557eeac +size 63071 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/0eafe69bdab06643b4c08cad35acb82bc06e39_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/0eafe69bdab06643b4c08cad35acb82bc06e39_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..080a0a004d5e9bbc3f981daa6a8685afd2466fa5 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/0eafe69bdab06643b4c08cad35acb82bc06e39_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4331ef13072d9512d217b5ab8edbaa662c237aafee6474fda97a9a32926b5c81 +size 4454 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/19833074011603dd7b754f5ed2c328be049ceec.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/19833074011603dd7b754f5ed2c328be049ceec.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9c65958855048e35bc229a1d422295233052048e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/19833074011603dd7b754f5ed2c328be049ceec.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83c0178bea30cdbd823299781664901ad88bc46eb196f88574e6cee438756f03 +size 178061 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/353bbd53207167fd1fe2cb964e7c67fa091a08_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/353bbd53207167fd1fe2cb964e7c67fa091a08_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8a6d3f15ab7d6dcf632e95d7679508d7e745d947 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/353bbd53207167fd1fe2cb964e7c67fa091a08_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e03f68be9efce02cdea3b5001d9780c69f6c5d1496440ab246569aa515772888 +size 6664 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/41af32e96baf29240ee1cecaaf09c5a9e19d02a.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/41af32e96baf29240ee1cecaaf09c5a9e19d02a.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a17a2bdce640d20bfc6044694285ec947e2a8982 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/41af32e96baf29240ee1cecaaf09c5a9e19d02a.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b60dbc216b31849da7c035aaa734d93782ee192f3ca52531586b93b5dbbce98 +size 177807 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/456840f936217fbba9e70a2ff1c55f0732361aa.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/456840f936217fbba9e70a2ff1c55f0732361aa.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a98f01beb34f89a6a0bce255f225c5981f866f0e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/456840f936217fbba9e70a2ff1c55f0732361aa.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1a8aa029d87d2d7ae3a28dcda9ffb8e2dfed1d8e0a82ce326a70fb700e6560a +size 221610 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/56652044f450966373a2c5a21e7db070ed1475c.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/56652044f450966373a2c5a21e7db070ed1475c.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6d5119a8902e1134a8d98b0807421f6a9d75ede3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/56652044f450966373a2c5a21e7db070ed1475c.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b0ac28bfa45c903b2135a268690a012e37e494a928e76ca0040eb134c428432 +size 83804 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color.png new file mode 100644 index 0000000000000000000000000000000000000000..83a1b8c8ec6c89ebeb04410c14b2503df8e24fd3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:884805d843c26842fe9ca3b47fc1e38e9c3127b421d710c503e140c47988ba35 +size 22579369 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color_5.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color_5.png new file mode 100644 index 0000000000000000000000000000000000000000..83a1b8c8ec6c89ebeb04410c14b2503df8e24fd3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_color_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:884805d843c26842fe9ca3b47fc1e38e9c3127b421d710c503e140c47988ba35 +size 22579369 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f2c7af19f075bf59a0323ec44920199a02941b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95f047ca9b80b76b1c4cc61f0fd195d117fe779ea21c20c2d93df91c2d253188 +size 7193704 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_1.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f2c7af19f075bf59a0323ec44920199a02941b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95f047ca9b80b76b1c4cc61f0fd195d117fe779ea21c20c2d93df91c2d253188 +size 7193704 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_3.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f2c7af19f075bf59a0323ec44920199a02941b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95f047ca9b80b76b1c4cc61f0fd195d117fe779ea21c20c2d93df91c2d253188 +size 7193704 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_5.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_5.png new file mode 100644 index 0000000000000000000000000000000000000000..a2f2c7af19f075bf59a0323ec44920199a02941b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/57b5309c5b60e151bceaf02c_metallic_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95f047ca9b80b76b1c4cc61f0fd195d117fe779ea21c20c2d93df91c2d253188 +size 7193704 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_color_2.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_color_2.png new file mode 100644 index 0000000000000000000000000000000000000000..83ab2f2ed82f3330b6f4f47fa70bf34f0cb5e3c9 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_color_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10a901ec87e38abdf84d53cba7b874853a9d1bcff52fc37a3413789ad85c1002 +size 3082221 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_metallic_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_metallic_1.png new file mode 100644 index 0000000000000000000000000000000000000000..f568dc842fc03ad9a02923a0c2fdb8bfa42c1ad6 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/585a32fc5b60e13364fe7cf3_metallic_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dce3d60d5b2b5bd52474c54bb67c51d05a2f7789b46bda7d467b200d8aea532 +size 1044258 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdca7c36f29d7e4539ab50_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdca7c36f29d7e4539ab50_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..e8d8b4d3c4f26373e32acc1792de025a09499134 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdca7c36f29d7e4539ab50_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47e5b3f31e0fbfb49f34781677e76d0b52b8f7ade58e8a6884be2523d74500ea +size 32353 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color.png new file mode 100644 index 0000000000000000000000000000000000000000..f6f9cc4098b0819a4be12ca12014f2584da6eb2b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc42c0d20b24e518a6d8a195053ad2763de3bc92444ceb0c1f3052d8083f9199 +size 781321 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color_2.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color_2.png new file mode 100644 index 0000000000000000000000000000000000000000..f6f9cc4098b0819a4be12ca12014f2584da6eb2b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_color_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc42c0d20b24e518a6d8a195053ad2763de3bc92444ceb0c1f3052d8083f9199 +size 781321 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_metallic_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_metallic_3.png new file mode 100644 index 0000000000000000000000000000000000000000..ce0cc05fc9a9b7ebf0b2ba187bafb66ab8f56b4c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5acdfa0236f29d1c4a8dcdeb_metallic_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aca429596c7d693da8c376502dfb28840bea20c60ec45fdcaf9354c1460bca87 +size 298264 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5aec1caa37b50e305a4a62ff_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5aec1caa37b50e305a4a62ff_color.png new file mode 100644 index 0000000000000000000000000000000000000000..92bc7bb1b7cce96c6933a7c3b0fea37acd4b8209 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5aec1caa37b50e305a4a62ff_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8db39c1e4d94b5bc6e8a5ab958078caafe8a1f28a0843542971f06c60c515afc +size 3826012 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color.png new file mode 100644 index 0000000000000000000000000000000000000000..b81cf4f0c716e75cdb40f3694542b3a686b6914d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dc0fcb417291feab2b3493ec1a3ca504a24b83e42b5ea1a7b5150afc5812227 +size 4209956 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b81cf4f0c716e75cdb40f3694542b3a686b6914d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5cf0dd999e79630001cca78c_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dc0fcb417291feab2b3493ec1a3ca504a24b83e42b5ea1a7b5150afc5812227 +size 4209956 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d1ca697c41548fb95c59ea0fa7ec93dab6e22_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d1ca697c41548fb95c59ea0fa7ec93dab6e22_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3a8765d995b34a67aab3113d2fdfb7e2fcb19b3d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d1ca697c41548fb95c59ea0fa7ec93dab6e22_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7efbeb8a14914a27d93aebabf85c75cde0fd946ecb7c9430d79b822b1af9dedb +size 4266 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d7215a3447e4e0001b63abe_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d7215a3447e4e0001b63abe_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..10b054230b552c8ff2ee1057bc0d1f89d1080a9b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5d7215a3447e4e0001b63abe_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8a9a959bb2581e2718f05bcbe885b4be09e2b5dbc67f0f17e83198965289e1af +size 372604 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..42d6dde2a7945fb73a6bff94cb2881664effee78 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d220c37acea8962664acf61ab77615c7e5a1b06f4113107a450cc0aaa40450f3 +size 2611875 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_2.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_2.png new file mode 100644 index 0000000000000000000000000000000000000000..42d6dde2a7945fb73a6bff94cb2881664effee78 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d220c37acea8962664acf61ab77615c7e5a1b06f4113107a450cc0aaa40450f3 +size 2611875 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_4.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_4.png new file mode 100644 index 0000000000000000000000000000000000000000..42d6dde2a7945fb73a6bff94cb2881664effee78 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b9197d6a630001d7b1b1_color_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d220c37acea8962664acf61ab77615c7e5a1b06f4113107a450cc0aaa40450f3 +size 2611875 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3a_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3a_color.png new file mode 100644 index 0000000000000000000000000000000000000000..8308d2f8d7645eba6d0aa40a5edbdbfddcda592f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3a_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4a19567b6eaf602efb9cba0e5f5c13fcf6eebd23647c20b09167c559d480dcf +size 2605684 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3b_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3b_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..74af9f5b3c0b5ba5c5249c71fe4ddab8770e5d95 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919d849e100012c0e3b_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29cade2433654d36f086aeef51d0463de6a82df498df1b3b757da52ec5abbadf +size 2658719 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919e113f60001f180ba_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919e113f60001f180ba_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..b0f9791fe7ae0eb4419b3f54a3458b7cba7fb6cb --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5e44b919e113f60001f180ba_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c180385955a3bf178b0b8c0c798f2631cceec248ad19790ae48d41a758f4abd4 +size 2660413 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..8c9d96a01cdcf29a6cd9685f9ab72c6b39da76ef --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecab08f040959c727cbff6ad6454d0b0293a5997c0ce31eec88881d4986c8bbd +size 629239 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_3.png new file mode 100644 index 0000000000000000000000000000000000000000..8c9d96a01cdcf29a6cd9685f9ab72c6b39da76ef --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_color_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecab08f040959c727cbff6ad6454d0b0293a5997c0ce31eec88881d4986c8bbd +size 629239 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_metallic_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_metallic_3.png new file mode 100644 index 0000000000000000000000000000000000000000..e3dcca769c9fed37ea5bf6fdccffe37f707cd0cf --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a5617e93b0001c9daff_metallic_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5c2442d4e964b2f3928e2683410d21fc898f081ae810be400f7339f2b975c8a +size 412702 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..ca36fafb316db45f281ec3ea87f3b24e3bc999fa --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bc16c12136e59a4b4651b5e737c157ddff5c9e6e8b8e3479145014882acb77f +size 648965 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_4.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_4.png new file mode 100644 index 0000000000000000000000000000000000000000..ca36fafb316db45f281ec3ea87f3b24e3bc999fa --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_color_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bc16c12136e59a4b4651b5e737c157ddff5c9e6e8b8e3479145014882acb77f +size 648965 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..0d987b1626f540873ab377c469ed28561e152efe --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc4bf9ee774a8b593196b2a54b9fc297c92ee56183dc646dbca2ad1e00550ee +size 321068 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_2.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_2.png new file mode 100644 index 0000000000000000000000000000000000000000..0d987b1626f540873ab377c469ed28561e152efe --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc4bf9ee774a8b593196b2a54b9fc297c92ee56183dc646dbca2ad1e00550ee +size 321068 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_3.png new file mode 100644 index 0000000000000000000000000000000000000000..0d987b1626f540873ab377c469ed28561e152efe --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee04a56b1d8ad00013d7ac7_metallic_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc4bf9ee774a8b593196b2a54b9fc297c92ee56183dc646dbca2ad1e00550ee +size 321068 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..e3dcca769c9fed37ea5bf6fdccffe37f707cd0cf --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5c2442d4e964b2f3928e2683410d21fc898f081ae810be400f7339f2b975c8a +size 412702 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..5b6670e438104e7eb76cc00a8bace731a56ca2ec --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7827d95968ad40001fc150ca9343e4f6aa00534f557a47a4779f2099b2a0b04 +size 786750 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_1.png new file mode 100644 index 0000000000000000000000000000000000000000..5b6670e438104e7eb76cc00a8bace731a56ca2ec --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7827d95968ad40001fc150ca9343e4f6aa00534f557a47a4779f2099b2a0b04 +size 786750 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_8.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_8.png new file mode 100644 index 0000000000000000000000000000000000000000..5b6670e438104e7eb76cc00a8bace731a56ca2ec --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5ee08512d849e1000181993d_normal_8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7827d95968ad40001fc150ca9343e4f6aa00534f557a47a4779f2099b2a0b04 +size 786750 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_11.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_11.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_15.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_15.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_15.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_16.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_16.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_19.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_19.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_19.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_21.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_21.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_21.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_3.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_31.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_31.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_31.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_37.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_37.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_37.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_43.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_43.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_43.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_6.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_6.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_7.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_7.png new file mode 100644 index 0000000000000000000000000000000000000000..4faab35ba63d4f77ef22ce0f24967bd3a00d4f8c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5eeca4f35974ed00012459a5_color_7.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25431785b2d5f7ff1492ad1a087bbbc09c3d9397c0dcc3522d47ad8f6da58d28 +size 9179464 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5f41c4ca5974ed0001ea3c6f_color_4.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5f41c4ca5974ed0001ea3c6f_color_4.png new file mode 100644 index 0000000000000000000000000000000000000000..23e03504c05886e76741dadf04638fd110aa4109 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5f41c4ca5974ed0001ea3c6f_color_4.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e531015c4f92cab758c873101a76273ac19b7e618150ca721e7699f4b8cb50d9 +size 3292743 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7a7fdaa4000142baa4_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7a7fdaa4000142baa4_color.png new file mode 100644 index 0000000000000000000000000000000000000000..8714f012e27307af153c4c05927dea533fa04aa7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7a7fdaa4000142baa4_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4271e52e3169ece6e41fb1fa9c28db12e84b54f3ba655a2d9f4c848dc392902f +size 1576737 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7ab1d8ad00014773d2_metallic.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7ab1d8ad00014773d2_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..26ccf1809b59a8d2941431b68c094497bc1a9c2e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/5fce1d7ab1d8ad00014773d2_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:174daafb449999d159dc8a6fad59605d8181ced8cea935ff5691c39321ff4776 +size 809520 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color.png new file mode 100644 index 0000000000000000000000000000000000000000..95bfb4a85a7b59519de46a93bdb98a1e149ad419 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1325299bce97a2f88331f7238db62707b78e4ef6051b6950491cfa23f586448f +size 28727 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color_1.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color_1.png new file mode 100644 index 0000000000000000000000000000000000000000..95bfb4a85a7b59519de46a93bdb98a1e149ad419 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/607fee5be77dfc000135cbac_color_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1325299bce97a2f88331f7238db62707b78e4ef6051b6950491cfa23f586448f +size 28727 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7897e88a9f66fb10b322124850f938cc3880d06_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7897e88a9f66fb10b322124850f938cc3880d06_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5d66df78f65029bb4313d7cf68f111053b07c834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7897e88a9f66fb10b322124850f938cc3880d06_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49e9bf37d457573f36961b6dd87077237bcbbd7d9492a26bd2f2e0d8ff77e443 +size 474215 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7_texture0.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7_texture0.png new file mode 100644 index 0000000000000000000000000000000000000000..816268cd7aca3682b6455a6fead293191d310abb --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/7_texture0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bffca143373fdd9930ab74e65e6743e6beafad05f39afec8b8a3690b9c6418f5 +size 1064216 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/85fa678e3d52324f860466e642b8dfe284202449.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/85fa678e3d52324f860466e642b8dfe284202449.jpg new file mode 100644 index 0000000000000000000000000000000000000000..979fb008536980fd0316643d7b032811b47f5157 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/85fa678e3d52324f860466e642b8dfe284202449.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf136db6abff7cb0b6c2d676573e1397dbac5b6d0d28c171f1ee4c5302eb23e5 +size 505190 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/abf8871c7e904d8a5201ae05340bd4a0751386e2.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/abf8871c7e904d8a5201ae05340bd4a0751386e2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..825e26a1075e86f06a5e0175db2375c8f8c7cea8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/abf8871c7e904d8a5201ae05340bd4a0751386e2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90a19f78ad5d5a28eecb55735c618d78ef6e3fe6cb074e45d7295e0ece45e2c6 +size 397254 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/b7cfaf675af5a3af4d217c717061233cf076268.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/b7cfaf675af5a3af4d217c717061233cf076268.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e356939e45c54ca4f017d7b9e9684ba80736669c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/b7cfaf675af5a3af4d217c717061233cf076268.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e82bd056a60ec855984f52606ee834dae68b11398912b620a253a9986257b0af +size 129751 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_100.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_100.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_100.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_108.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_108.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_108.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_114.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_114.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_114.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_115.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_115.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_115.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_117.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_117.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_117.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_12.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_12.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_120.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_120.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_120.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_122.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_122.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_122.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_139.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_139.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_139.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_141.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_141.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_141.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_146.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_146.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_146.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_15.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_15.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_15.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_156.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_156.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_156.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_157.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_157.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_157.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_159.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_159.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_159.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_16.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_16.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_167.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_167.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_167.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_17.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_17.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_17.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_170.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_170.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_170.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_171.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_171.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_171.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_173.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_173.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_173.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_180.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_180.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_180.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_181.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_181.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_181.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_182.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_182.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_182.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_196.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_196.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_196.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_200.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_200.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_200.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_201.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_201.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_201.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_210.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_210.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_210.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_215.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_215.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_215.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_222.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_222.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_222.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_223.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_223.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_223.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_227.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_227.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_227.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_228.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_228.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_228.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_229.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_229.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_229.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_231.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_231.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_231.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_232.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_232.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_232.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_241.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_241.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_241.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_242.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_242.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_242.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_250.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_250.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_250.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_253.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_253.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_253.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_254.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_254.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_254.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_256.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_256.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_256.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_259.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_259.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_259.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_268.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_268.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_268.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_270.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_270.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_270.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_272.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_272.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_272.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_275.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_275.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_275.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_277.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_277.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_277.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_279.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_279.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_279.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_28.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_28.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_282.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_282.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_282.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_293.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_293.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_293.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_295.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_295.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_295.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_30.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_30.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_30.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_304.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_304.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_304.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_310.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_310.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_310.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_35.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_35.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_35.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_45.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_45.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_45.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_47.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_47.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_47.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_49.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_49.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_49.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_53.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_53.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_53.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_62.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_62.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_62.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_67.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_67.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_67.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_70.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_70.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_70.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_71.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_71.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_71.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_72.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_72.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_72.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_78.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_78.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_78.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_79.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_79.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_79.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_8.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_8.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_84.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_84.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_84.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_85.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_85.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_85.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_88.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_88.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_88.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_96.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_96.png new file mode 100644 index 0000000000000000000000000000000000000000..fe25e679621fef83e0b6e7a2a37e761c0f1fb016 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/black_96.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1737b9d208dc78e4638c6c2e98a46f222c5aa8bbe3dfa7812b869c0351c9d509 +size 197 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ccc1800449a63968b5d771d92774a323c6135d0_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ccc1800449a63968b5d771d92774a323c6135d0_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..81b9c6d11d9f3a505db2bfe66a223eb38b5f8cc6 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ccc1800449a63968b5d771d92774a323c6135d0_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7cfbd9b5a68078d3ed31c600fc4272a0687985a9b32b90455217c20bda7facf6 +size 10186 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/e82bdbe7a68f210f8ac3394dc7fc788ea5225a45_1.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/e82bdbe7a68f210f8ac3394dc7fc788ea5225a45_1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..55bf6cd4c30e62a2fce7cc3801a619817d5b0e6a --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/e82bdbe7a68f210f8ac3394dc7fc788ea5225a45_1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69a3151febdd8a618383e69eb1667486fcd546419595f0907a12d873b0f3349b +size 459857 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ed2d6b446af54888dc0e7be8897937e61216533d.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ed2d6b446af54888dc0e7be8897937e61216533d.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7d32a3c30627515c2854c60f3e2b072fb0e10952 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ed2d6b446af54888dc0e7be8897937e61216533d.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89e6711cea26aaf97ebd85250f216a1b393554191e50a13e5f916b66c0cd60bd +size 512859 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ef68bff7c3033487501b7b2b67ee326e847eaf.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ef68bff7c3033487501b7b2b67ee326e847eaf.jpg new file mode 100644 index 0000000000000000000000000000000000000000..87141a4bc8146597fdd891842d3e4b84b0566839 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/ef68bff7c3033487501b7b2b67ee326e847eaf.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34276f35ff15af0e14f5f87f3804a097fa650bf6a0ff446b8cea12011ef5cb33 +size 6259 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/fa095f99bb270b22a1133a4cd4f485955a1bc84.jpg b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/fa095f99bb270b22a1133a4cd4f485955a1bc84.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4aee738bafd47a513973d0b54a8879a27bf50244 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/fa095f99bb270b22a1133a4cd4f485955a1bc84.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f89d3c669122c6bc7657d022ee55d863c4e874cbf6f43bfa5527e98ffb841fa +size 113796 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_100.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_100.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_100.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_110.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_110.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_110.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_111.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_111.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_111.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_112.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_112.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_112.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_113.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_113.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_113.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_115.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_115.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_115.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_12.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_12.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_122.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_122.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_122.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_129.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_129.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_129.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_137.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_137.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_137.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_14.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_14.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_14.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_149.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_149.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_149.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_158.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_158.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_158.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_161.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_161.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_161.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_170.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_170.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_170.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_171.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_171.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_171.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_173.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_173.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_173.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_187.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_187.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_187.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_190.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_190.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_190.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_2.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_2.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_201.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_201.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_201.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_203.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_203.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_203.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_204.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_204.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_204.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_211.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_211.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_211.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_214.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_214.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_214.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_215.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_215.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_215.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_218.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_218.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_218.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_223.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_223.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_223.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_226.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_226.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_226.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_230.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_230.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_230.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_239.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_239.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_239.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_248.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_248.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_248.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_249.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_249.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_249.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_251.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_251.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_251.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_253.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_253.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_253.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_254.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_254.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_254.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_256.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_256.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_256.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_257.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_257.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_257.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_258.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_258.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_258.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_266.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_266.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_266.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_267.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_267.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_267.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_274.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_274.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_274.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_277.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_277.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_277.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_283.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_283.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_283.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_285.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_285.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_285.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_286.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_286.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_286.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_287.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_287.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_287.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_288.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_288.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_288.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_295.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_295.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_295.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_306.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_306.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_306.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_31.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_31.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_31.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_312.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_312.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_312.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_319.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_319.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_319.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_337.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_337.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_337.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_35.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_35.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_35.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_37.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_37.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_37.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_38.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_38.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_38.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_45.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_45.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_45.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_48.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_48.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_48.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_50.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_50.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_50.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_51.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_51.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_51.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_53.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_53.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_53.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_54.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_54.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_54.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_55.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_55.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_55.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_63.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_63.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_63.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_64.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_64.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_64.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_67.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_67.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_67.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_73.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_73.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_73.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_79.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_79.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_79.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_82.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_82.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_82.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_9.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_9.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_9.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_94.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_94.png new file mode 100644 index 0000000000000000000000000000000000000000..bcd2cbe633402945b9863951d24f055ae6be3bfd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/normal_94.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffa19106ab1ef542307afa48e779c169d23d534bb0acd7c99d986889a19f002c +size 196 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_10.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_10.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_10.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_100.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_100.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_100.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_11.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_11.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_11.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_112.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_112.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_112.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_115.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_115.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_115.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_12.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_12.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_12.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_121.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_121.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_121.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_122.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_122.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_122.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_123.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_123.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_123.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_127.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_127.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_127.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_13.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_13.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_13.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_132.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_132.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_132.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_138.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_138.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_138.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_142.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_142.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_142.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_152.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_152.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_152.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_154.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_154.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_154.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_158.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_158.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_158.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_16.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_16.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_17.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_17.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_17.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_170.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_170.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_170.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_177.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_177.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_177.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_178.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_178.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_178.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_184.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_184.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_184.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_185.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_185.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_185.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_187.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_187.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_187.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_188.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_188.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_188.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_19.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_19.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_19.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_195.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_195.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_195.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_202.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_202.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_202.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_211.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_211.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_211.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_213.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_213.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_213.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_217.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_217.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_217.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_226.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_226.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_226.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_23.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_23.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_23.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_234.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_234.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_234.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_238.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_238.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_238.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_239.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_239.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_239.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_24.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_24.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_24.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_243.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_243.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_243.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_245.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_245.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_245.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_248.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_248.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_248.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_249.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_249.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_249.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_250.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_250.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_250.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_252.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_252.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_252.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_257.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_257.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_257.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_26.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_26.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_26.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_260.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_260.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_260.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_266.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_266.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_266.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_268.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_268.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_268.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_270.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_270.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_270.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_277.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_277.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_277.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_279.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_279.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_279.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_28.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_28.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_28.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_281.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_281.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_281.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_283.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_283.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_283.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_288.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_288.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_288.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_294.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_294.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_294.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_295.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_295.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_295.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_3.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_3.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_30.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_30.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_30.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_302.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_302.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_302.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_303.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_303.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_303.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_304.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_304.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_304.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_309.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_309.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_309.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_315.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_315.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_315.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_316.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_316.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_316.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_322.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_322.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_322.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_33.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_33.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_33.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_34.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_34.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_34.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_343.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_343.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_343.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_35.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_35.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_35.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_39.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_39.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_39.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_47.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_47.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_47.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_5.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_5.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_5.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_52.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_52.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_52.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_6.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_6.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_6.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_65.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_65.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_65.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_70.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_70.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_70.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_71.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_71.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_71.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_77.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_77.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_77.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_79.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_79.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_79.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_8.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_8.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_8.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_83.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_83.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_83.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_87.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_87.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_87.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_92.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_92.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_92.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_93.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_93.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_93.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_96.png b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_96.png new file mode 100644 index 0000000000000000000000000000000000000000..8e7c9ddfd5b159635f2775c4487099834432f834 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/textures/white_96.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3953e0be8bde97630eb7e1ee94a34f08cc408895ddd1244a29958ef5da3ea40 +size 195 diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2065d8e637cf60ef12e03a73082728622aaa7044 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/KooPbr.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/KooPbr.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5e993afd51fcee2e32fb4d95cd3570aff2eb9405 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/KooPbr.mdl @@ -0,0 +1,462 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::anno::*; +import ::df::*; +import ::df::color_weighted_layer; +import ::math::*; +import ::state::*; + +export material KooMtl2Sided( + material frontMtl = material() [[ + anno::in_group("Parameters"), + anno::display_name("Front material") + ]], + material backMtl = frontMtl [[ + anno::in_group("Parameters"), + anno::display_name("Back material") + ]], + uniform bool use_backMtl = false [[ + anno::in_group("Parameters"), + anno::display_name("Use back material") + ]], + color translucency = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Basic parameters"), + anno::display_name("Translucency") + ]], + color front_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Front tint"), + anno::hidden() + ]], + color back_tint = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Back tint"), + anno::hidden() + ]], + uniform bool multiply_by_front_diffuse = false [[ + anno::in_group("Basic parameters"), + anno::display_name("Multiply by front diffuse"), + anno::unused(), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + bsdf transmission_bsdf = + df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f); + + bsdf front_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : frontMtl.surface.scattering + ); + + bsdf back_bsdf = + df::color_weighted_layer + ( + weight : translucency, + layer : transmission_bsdf, + base : backMtl.surface.scattering + ); + } in + material( + thin_walled: true, + ior: frontMtl.ior, + surface: material_surface(scattering: front_bsdf), + backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf), + volume: frontMtl.volume, + geometry: frontMtl.geometry + ); + +float emissive_multiplier() uniform +[[ + anno::description("unit conversion from pbrjson emission to mdl"), + anno::noinline() +]] +{ + return 2560.f; +} + +export material KooLightMtl( + color emission = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Emission") + ]], + uniform float emission_mult = 1.f [[ + anno::in_group("Parameters"), + anno::display_name("Mutliplier") + ]], + color opacity = color(1.f, 1.f, 1.f) [[ + anno::in_group("Parameters"), + anno::display_name("Opacity") + ]], + uniform bool emit_on_backside = false [[ + anno::in_group("Parameters"), + anno::display_name("Emit light on back side") + ]]) +[[ + anno::author("KooLab") +]] + = + let { + color emission_color = (emission*opacity)*emission_mult * emissive_multiplier(); + + bsdf surface_bsdf = + df::simple_glossy_bsdf + ( + mode: df::scatter_transmit, + tint: color(1.f) - opacity, + roughness_u: 0 + ); + + material_surface emit_surface = material_surface( + scattering: surface_bsdf, + emission: material_emission( + emission: df::diffuse_edf(), + intensity: emission_color) + ); + } in + material( + thin_walled: emit_on_backside, + ior: color(1.f), + surface: emit_surface, + backface: emit_on_backside ? emit_surface : material_surface() + ); + +export material KooMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::hard_range(0.2f, 5.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-Illumination Intensity") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.0f + ), + normal : texmap_bump + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material + ( + ior : color(refr_ior), + thin_walled : thin_walled, + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry + ( + cutout_opacity: opacity + ) + ); + +export material KooTranslucentMtl( + color diffuse = color(0.5f, 0.5f, 0.5f) [[ + anno::in_group("Diffuse Parameters"), + anno::display_name("Diffuse") + ]], + color reflect = color(0.f, 0.f, 0.f) [[ + anno::in_group("Reflections"), + anno::display_name("Reflect") + ]], + float reflect_glossiness = 1.f [[ + anno::in_group("Reflections"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform bool fresnel = true [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel reflections") + ]], + float fresnel_ior = 1.6f [[ + anno::in_group("Reflections"), + anno::display_name("Fresnel IOR"), + anno::soft_range(0.2, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool fresnel_ior_lock = true [[ + anno::in_group("Reflections"), + anno::display_name("Lock IOR") + ]], + uniform bool invert_reflection_ior = false [[ + anno::in_group("Reflections"), + anno::hidden() + ]], + float reflection_metalness = 0.f [[ + anno::in_group("Reflections"), + anno::display_name("Metalness"), + anno::hard_range(0.f, 1.f) + ]], + color refract = color(0.f, 0.f, 0.f) [[ + anno::in_group("Refractions"), + anno::display_name("Refract") + ]], + float refract_glossiness = 1.f [[ + anno::in_group("Refractions"), + anno::display_name("Glossiness"), + anno::hard_range(0.f, 1.f) + ]], + uniform float refract_ior = 1.6f [[ + anno::in_group("Refractions"), + anno::display_name("IOR"), + anno::soft_range(0.2f, 5.f), + anno::hard_range(1.0e-06f, 100.f) + ]], + uniform bool invert_refraction_ior = false [[ + anno::in_group("Refractions"), + anno::hidden() + ]], + color self_illumination = color(0.f, 0.f, 0.f) [[ + anno::in_group("Self-Illumination"), + anno::display_name("Self-illumination") + ]], + uniform float self_illumination_multiplier = 1.f [[ + anno::in_group("Self-Illumination"), + anno::display_name("Multiplier") + ]], + float anisotropy = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Anisotropy"), + anno::hard_range(-1.f, 1.f), + anno::unused(), + anno::hidden() + ]], + float anisotropy_rotation = 0.f [[ + anno::in_group("BRDF"), + anno::display_name("Rotation"), + anno::hard_range(-10000.f, 10000.f), + anno::unused(), + anno::hidden() + ]], + float3 texmap_bump = state::normal() [[ + anno::in_group("Maps"), + anno::display_name("Bump Map") + ]], + float texmap_opacity = 1.f [[ + anno::in_group("Maps"), + anno::display_name("Opacity Map") + ]], + uniform bool thin_walled = false [[ + anno::in_group("Options"), + anno::hidden() + ]]) +[[ + anno::author("KooLab") +]] + = + let { + float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f); + + float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f); + + float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior; + float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior; + + float ior = fresnel_ior_lock ? refr_ior : refl_ior; + float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f); + + bsdf diffuse_bsdf = + df::weighted_layer + ( + weight : 1.f, + layer : df::diffuse_reflection_bsdf + ( + tint : diffuse, + roughness : 0.f + ), + normal : texmap_bump + ); + + bsdf glossy_transmission_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_transmit, + tint: color(1.f), + roughness_u: refraction_roughness + ); + + bsdf glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: fresnel ? reflect : color(1.f), + roughness_u: reflection_roughness + ); + + bsdf diffuse_glossy_reflection_bsdf = + df::simple_glossy_bsdf( + mode: df::scatter_reflect, + tint: diffuse, + roughness_u: reflection_roughness + ); + + bsdf surface_bsdf = + df::color_custom_curve_layer + ( + normal_reflectivity : fresnel ? color(R0) : reflect, + grazing_reflectivity: fresnel ? color(1.f) : reflect, + layer : glossy_reflection_bsdf, + base : + df::weighted_layer + ( + weight : reflection_metalness, + layer : diffuse_glossy_reflection_bsdf, + base : + df::color_weighted_layer + ( + weight : refract, + layer : glossy_transmission_bsdf, + base : diffuse_bsdf, + normal : texmap_bump + ), + normal : texmap_bump + ), + normal : texmap_bump + ); + } in + material( + thin_walled : thin_walled, + ior : color(refr_ior), + surface : material_surface + ( + scattering : surface_bsdf, + emission : material_emission + ( + emission : df::diffuse_edf(), + intensity : self_illumination*self_illumination_multiplier + ) + ), + geometry : material_geometry(cutout_opacity: texmap_opacity) + ); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0a9b93930001101b50.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0a9b93930001101b50.mdl new file mode 100644 index 0000000000000000000000000000000000000000..898ceb20ef7dfaec05517d9743b0c221c689ad10 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0a9b93930001101b50.mdl @@ -0,0 +1,37 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6576cd0a9b93930001101b50(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,14,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.0234999992f, 0.01180000044f, 0.003899999894f), + reflect: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/aebff12d803ce3c0bbb82c9437bad79cb9478d5_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/092884d75a7babfa5109ff5c3c0305fab0b4393_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, 0.f, 0.f, 1.f, 1.f, 0, texture_2d("../textures/abf8871c7e904d8a5201ae05340bd4a0751386e2_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.05000000075f, 1.f, false, false, false, 1.f, 1.f, 0.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aa38875000154215f.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aa38875000154215f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1d9883453ca8b4c7143c98ecbcf3ce6a521391fa --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aa38875000154215f.mdl @@ -0,0 +1,36 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6576cd0aa38875000154215f(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,14],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/456840f936217fbba9e70a2ff1c55f0732361aa_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect: color(0.5189999938f, 0.5189999938f, 0.5189999938f), + reflect_glossiness: 0.6510000229f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aade22a0001b5738c.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aade22a0001b5738c.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b8e62bfe2041187305d2351a61e15f33c35feefa --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0aade22a0001b5738c.mdl @@ -0,0 +1,39 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooTranslucentMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6576cd0aade22a0001b5738c(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,30,34],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooTranslucentMtl( + diffuse: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/447d3d919861734770fd5f3aa1af7ee8ed644e3_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract: color(0.0270000007f, 0.0270000007f, 0.0270000007f), + refract_glossiness: 1.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, 0.f, 0.f, 1.f, 1.f, 0, texture_2d("../textures/7897e88a9f66fb10b322124850f938cc3880d06_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.3000000119f, 1.f, false, false, false, 1.f, 1.f, 0.f), + texmap_opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0ade958f0001607c83.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0ade958f0001607c83.mdl new file mode 100644 index 0000000000000000000000000000000000000000..6ce700332bf7c1b6d801cf5dfc6975afdbd220d0 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/MI_6576cd0ade958f0001607c83.mdl @@ -0,0 +1,37 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6576cd0ade958f0001607c83(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,14,28,29],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/8311160a7625ef2eea1e447a57a89871aa2155d5_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 0.4799999893f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, 0.f, 0.f, 1.f, 1.f, 0, texture_2d("../textures/85fa678e3d52324f860466e642b8dfe284202449_1.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.1000000015f, 1.f, false, false, false, 1.f, 1.f, 0.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5608a059e4b073096b7267c7.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5608a059e4b073096b7267c7.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1784a025406abec439f69f7f49e0cf78df6fc7a5 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5608a059e4b073096b7267c7.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5608a059e4b073096b7267c7( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5cc80896447e4e23278d8d94.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5cc80896447e4e23278d8d94.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9b6f5d2432880f5624d99a0ce56269a7723dfc7d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/Num5cc80896447e4e23278d8d94.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5cc80896447e4e23278d8d94( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task5/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898850aba1e0001229e8f.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898850aba1e0001229e8f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7a739684c4c770ea7831f2e9e22938d48ec6ebe2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898850aba1e0001229e8f.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_654898850aba1e0001229e8f(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.04710000008f, 0.04710000008f, 0.04710000008f), + reflect: color(0.5960000157f, 0.5960000157f, 0.5960000157f), + reflect_glossiness: 0.8999999762f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885552eff0001b33bea.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885552eff0001b33bea.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fc463d086856a297e91d17d065ac5adb6894216b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885552eff0001b33bea.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_falloff; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::KooPbr_maps::NormalMap_bump; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65489885552eff0001b33bea(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,29,11,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_falloff(KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/7f6e16d47a0d313543133c956a3ce4f5ac9feef.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/4969716fb57601ef2d57c4975f71e0ee6d5fa47.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f)).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::NormalMap_bump(KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/7d448fea9bec03956575a735459b2ac47c40a320.jpg", ::tex::gamma_linear, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), state::normal(), 1.f, 1.f, false, false, false, 1, 0.f, 1.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898857bb08300012879c0.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898857bb08300012879c0.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0dafb133dcd17a8e0b7081ff6009e1c4df6b01b3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/654898857bb08300012879c0.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_falloff; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_654898857bb08300012879c0(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,30,11,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_falloff(KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/2118933005d93e5db61702c7d990392c3266930.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/e43b19607cfdeaaf442af31a03c450e8a4653f7.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f)).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, -1.f, -1.f, 3.f, 3.f, 0, texture_2d("../textures/81bad7c26c818ca412785c62860b4eb4a0757f4.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.3000000119f, 1.f, false, false, false, 1.f, 1.f, 0.f), + opacity: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/1117440822990b3bae0a22891e0f01fab416b681.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/6548988591a6570001e65195.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/6548988591a6570001e65195.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cb18331d64499e39b623d6e1786d7cd0154d9326 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/6548988591a6570001e65195.mdl @@ -0,0 +1,37 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::KooPbr_maps::NormalMap_bump; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_6548988591a6570001e65195(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,30,11,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.3765000105f, 0.3411999941f, 0.2745000124f), + reflect: KooPbr_maps::KooPbr_bitmap(1, 0.200000003f, 0.200000003f, 0.6000000238f, 0.6000000238f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/f5ff04c679c67819b8b845bff4c9d2daa622946e.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).tint, + reflect_glossiness: KooPbr_maps::KooPbr_bitmap(1, 0.200000003f, 0.200000003f, 0.6000000238f, 0.6000000238f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/8682d8afdbc3e7a8027f42bffa5ee987bd23daaf.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::NormalMap_bump(KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/67d873fbbcd2012cb72c53a4a08ba2080c3e281d.jpg", ::tex::gamma_linear, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), state::normal(), 1.f, 1.f, false, false, false, 1, 0.f, 1.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885a948590001e4a67f.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885a948590001e4a67f.mdl new file mode 100644 index 0000000000000000000000000000000000000000..02f4c392f9921bdf4b930f915a984009d1e6b682 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885a948590001e4a67f.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_falloff; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::KooPbr_maps::NormalMap_bump; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65489885a948590001e4a67f(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,10,28,30,26,27,7,13,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_falloff(KooPbr_maps::KooPbr_bitmap(1, -0.5f, -0.5f, 2.f, 2.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/27ead108529f589c81b6690b16214bd950ea239.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), KooPbr_maps::KooPbr_bitmap(1, -0.5f, -0.5f, 2.f, 2.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/a0a96875417306a2d3b7f301203c4b763d122204.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f)).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: true, + fresnel_ior: 3.f, + fresnel_ior_lock: false, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::NormalMap_bump(KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/4af3ce291334158890f3fa2fa7d6ca9c963f2415.jpg", ::tex::gamma_linear, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), state::normal(), 1.f, 1.f, false, false, false, 1, 0.f, 1.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885dca2e20001d2d625.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885dca2e20001d2d625.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7ba6ebf4fbac06d3593690fc043b693189d28aa4 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885dca2e20001d2d625.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_falloff; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::KooPbr_maps::NormalMap_bump; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65489885dca2e20001d2d625(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,29,11,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_falloff(KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/019c58766150bc71db9bbeb0c3ac3893238989d.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/c43c3f6fbbeae5438ae5cde2e22ddebfa452023.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f)).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: true, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::NormalMap_bump(KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/7d448fea9bec03956575a735459b2ac47c40a320.jpg", ::tex::gamma_linear, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), state::normal(), 1.f, 1.f, false, false, false, 1, 0.f, 1.f), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885ef000500010955df.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885ef000500010955df.mdl new file mode 100644 index 0000000000000000000000000000000000000000..36cd09f3046dbfa05b164dcb4bd5229d96aa36e1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/65489885ef000500010955df.mdl @@ -0,0 +1,38 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.7; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::KooPbr_maps::KooPbr_alpha_source; +import ::KooPbr_maps::KooPbr_bitmap; +import ::KooPbr_maps::KooPbr_bitmap_bump; +import ::KooPbr_maps::KooPbr_falloff; +import ::KooPbr_maps::KooPbr_mono_output; +import ::KooPbr_maps::KooPbr_rgb_output; +import ::anno::description; +import ::base::texture_return; +import ::tex::gamma_mode; + +export material MI_65489885ef000500010955df(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,28,30,11,15],\"version\":\"1.3.8\"}") +]] + = KooPbr::KooMtl( + diffuse: KooPbr_maps::KooPbr_falloff(KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/ccc698db8689fdf8f6aae45fe1c6e6936f6f37e.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f), KooPbr_maps::KooPbr_bitmap(1, -1.f, -1.f, 3.f, 3.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/f3657536ed74fc40ac0f9b3e51173a27ff6c3be.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f)).tint, + reflect: color(0.f, 0.f, 0.f), + reflect_glossiness: 1.f, + fresnel: false, + fresnel_ior: 1.600000024f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.600000024f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: KooPbr_maps::KooPbr_bitmap_bump(1, true, false, true, false, 0.f, 0.f, 0.f, -1.f, -1.f, 3.f, 3.f, 0, texture_2d("../textures/81bad7c26c818ca412785c62860b4eb4a0757f4.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, 0.3000000119f, 1.f, false, false, false, 1.f, 1.f, 0.f), + opacity: KooPbr_maps::KooPbr_bitmap(1, 0.f, 0.f, 1.f, 1.f, true, false, true, false, 0.f, 0.f, 0.f, 0, texture_2d("../textures/acf0176a16cad38ff52e9f25c1e8dc479f16169d.jpg", ::tex::gamma_srgb, ""), 0.f, 1.f, 0.f, 1.f, KooPbr_maps::mono_output_rgb_intensity, KooPbr_maps::rgb_output_rgb, KooPbr_maps::alpha_source_none, 1.f, false, false, false, 1.f, 1.f, 0.f).mono, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..baad7bc32fb994b30cbacc0435b236f340edf875 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num54c5b73de4b04c6011f84415.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num54c5b73de4b04c6011f84415.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ac60ca9b12d6b12aa32eeecb6e439a802c7b968c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num54c5b73de4b04c6011f84415.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num54c5b73de4b04c6011f84415( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal_1.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num580d68817da91d23ed856956.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num580d68817da91d23ed856956.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f76aee2e70277639738bf806443bc77bb25444f7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/Num580d68817da91d23ed856956.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num580d68817da91d23ed856956( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal_1.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white_1.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task7/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..11f5bfe7d39c65eb715a4f5308f623d34231b84b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl new file mode 100644 index 0000000000000000000000000000000000000000..6f2b72f60aa65c85fd19ced218bc42144b3d4365 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/MI_6576cd09a9943b0001ca97b0.mdl @@ -0,0 +1,30 @@ +// auto generated by pbrjson2mdl +// version = cc4b850 +mdl 1.6; + +import ::state::normal; +import ::KooPbr::KooMtl; +import ::anno::description; + +export material MI_6576cd09a9943b0001ca97b0(*) +[[ + anno::description("{\"status\":0,\"tag\":[0,10,28],\"version\":\"1.4.0\"}") +]] + = KooPbr::KooMtl( + diffuse: color(0.638800025f, 0.5924000144f, 0.5541999936f), + reflect: color(0.0390000008f, 0.0390000008f, 0.0390000008f), + reflect_glossiness: 0.8000000119f, + fresnel: true, + fresnel_ior: 1.519999981f, + fresnel_ior_lock: true, + invert_reflection_ior: false, + reflection_metalness: 0.f, + refract_ior: 1.519999981f, + invert_refraction_ior: false, + self_illumination: color(0.f, 0.f, 0.f), + self_illumination_multiplier: 1.f, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + texmap_bump: state::normal(), + opacity: 1.f, + thin_walled: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl new file mode 100644 index 0000000000000000000000000000000000000000..55be8c445b09dd62b0cdbe2c1810772f4aa8f18d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num58ca739e5c26a005ae14274e.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num58ca739e5c26a005ae14274e( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal_2.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num5be4fd21ef62e015bca9629d.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num5be4fd21ef62e015bca9629d.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d4a2a5b94fb33e612589a15a5386040c29e70516 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/Num5be4fd21ef62e015bca9629d.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5be4fd21ef62e015bca9629d( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal_2.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white_2.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task8/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/3.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/3.usda new file mode 100644 index 0000000000000000000000000000000000000000..04a5518f32ecae6521ad7615ed7c90b7070537e7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/3.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_3" ( + prepend payload = @./3.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/4.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/4.usda new file mode 100644 index 0000000000000000000000000000000000000000..2c68f5ec4389848c69d3a8536f4cafdaa5b006b0 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/4.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_4" ( + prepend payload = @./4.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/5.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/5.usda new file mode 100644 index 0000000000000000000000000000000000000000..2a1e725dd0cc3360fc56675ee4a7a32a41b843ee --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/5.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_5" ( + prepend payload = @./5.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/7.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/7.usda new file mode 100644 index 0000000000000000000000000000000000000000..944d5ee2c07f6698afd10673e0d7da82696b13b0 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/7.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_7" ( + prepend payload = @./7.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/8.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/8.usda new file mode 100644 index 0000000000000000000000000000000000000000..a2edea3d89f1f99407798bf5d0890f96c91dd859 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/8.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_8" ( + prepend payload = @./8.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/9.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/9.usda new file mode 100644 index 0000000000000000000000000000000000000000..5d52042419ee03e383104f71e3f3e474656ac2ae --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/9.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_9" ( + prepend payload = @./9.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/MVUHLWYKTKJ5EAABAAAAAEA8_usd_study_room_2.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/MVUHLWYKTKJ5EAABAAAAAEA8_usd_study_room_2.usda new file mode 100644 index 0000000000000000000000000000000000000000..d946a023da2e7675819ee9efb42072c7bef3b9b4 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/MVUHLWYKTKJ5EAABAAAAAEA8_usd_study_room_2.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_MVUHLWYKTKJ5EAABAAAAAEA8_usd_study_room_2" ( + prepend payload = @./MVUHLWYKTKJ5EAABAAAAAEA8_usd_study_room_2.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance.usda new file mode 100644 index 0000000000000000000000000000000000000000..f6d300f4e0478635a99547a874ee7f192385b4a6 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance" ( + prepend payload = @./instance.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_10.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_10.usd new file mode 100644 index 0000000000000000000000000000000000000000..d4a707db828ecbf0f53c39460ea90df8a91d157d Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_10.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_100.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_100.usda new file mode 100644 index 0000000000000000000000000000000000000000..83fcf19c1a31c8461f3cc66425bd9abc3874a386 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_100.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_100" ( + prepend payload = @./instance_100.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_101.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_101.usda new file mode 100644 index 0000000000000000000000000000000000000000..2d7cc45558e519e5ec5cf637252d33cdaac88da1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_101.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_101" ( + prepend payload = @./instance_101.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usd new file mode 100644 index 0000000000000000000000000000000000000000..be3f4e278a760ef7188757ed2f21360d8f1ced4b Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usda new file mode 100644 index 0000000000000000000000000000000000000000..59c5fc1c01665837a85cf70ac9ab1abbf4b9205e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_102.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_102" ( + prepend payload = @./instance_102.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usd new file mode 100644 index 0000000000000000000000000000000000000000..4f3b9c14da685b1b2fbdba0c6f2c64b0e94c6037 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usda new file mode 100644 index 0000000000000000000000000000000000000000..9219052ad5f10ff1cd1519af066ee5f4876ca0b0 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_103.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_103" ( + prepend payload = @./instance_103.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_104.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_104.usda new file mode 100644 index 0000000000000000000000000000000000000000..b310f75817fc222cb76777055d45affd3d975b9b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_104.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_104" ( + prepend payload = @./instance_104.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_105.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_105.usda new file mode 100644 index 0000000000000000000000000000000000000000..e926ca85395c922b19865e7c48b8164243da0ad7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_105.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_105" ( + prepend payload = @./instance_105.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_106.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_106.usda new file mode 100644 index 0000000000000000000000000000000000000000..721256932ccfc55132d1bd42482f62151c9e3803 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_106.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_106" ( + prepend payload = @./instance_106.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_107.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_107.usda new file mode 100644 index 0000000000000000000000000000000000000000..3d52a754bd63dc02fb3c6fc0cb46fbab6dfb7e70 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_107.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_107" ( + prepend payload = @./instance_107.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usd new file mode 100644 index 0000000000000000000000000000000000000000..001037385939c6279b96236df6a3246bc74de359 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usda new file mode 100644 index 0000000000000000000000000000000000000000..62b00275902d04158c8dd240f5eac2f955af7c6e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_108.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_108" ( + prepend payload = @./instance_108.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usd new file mode 100644 index 0000000000000000000000000000000000000000..758b1c1aa4c97dbf2de56e0e8e6bb72e449ee9e4 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usda new file mode 100644 index 0000000000000000000000000000000000000000..95680153ccd981657c1536088d2950e79f0a3f27 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_109.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_109" ( + prepend payload = @./instance_109.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usd new file mode 100644 index 0000000000000000000000000000000000000000..d47f06c671a35375745344e0311e08bb4e93d16e Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usda new file mode 100644 index 0000000000000000000000000000000000000000..785834320441714cbfaf93da71a7ff39187ebc5e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_11.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_11" ( + prepend payload = @./instance_11.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_110.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_110.usda new file mode 100644 index 0000000000000000000000000000000000000000..13bee87c41de8e4feeb9530b3f9957ee1ab1485e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_110.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_110" ( + prepend payload = @./instance_110.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usd new file mode 100644 index 0000000000000000000000000000000000000000..bf8d38ac9f1c7e15307a96b16e4734840b16a1cf Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usda new file mode 100644 index 0000000000000000000000000000000000000000..0eb46b3cee3ad52c5610a8fe98835015682cb88a --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_111.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_111" ( + prepend payload = @./instance_111.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usd new file mode 100644 index 0000000000000000000000000000000000000000..8ce34185a631b7a36cdb3fef7986f97f91d4b0fc Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usda new file mode 100644 index 0000000000000000000000000000000000000000..817a320e116c63ca33f6ae49b09741796f6ff471 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_112.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_112" ( + prepend payload = @./instance_112.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usd new file mode 100644 index 0000000000000000000000000000000000000000..842c6eb7b0ed4147e117311fa2c2c3dbea5df857 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usda new file mode 100644 index 0000000000000000000000000000000000000000..173072fea93ba3e0986d446e16b3e0cccfd1990b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_114.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_114" ( + prepend payload = @./instance_114.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_115.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_115.usd new file mode 100644 index 0000000000000000000000000000000000000000..177b50fe193a0f8d675885bc180bb2b0096f558d Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_115.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_116.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_116.usda new file mode 100644 index 0000000000000000000000000000000000000000..0d3168f8e2e19da78c331d0ab8159bc0669dcf9d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_116.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_116" ( + prepend payload = @./instance_116.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usd new file mode 100644 index 0000000000000000000000000000000000000000..efac3b3f8658bc79caeabdfe0e19d70a45fede0e Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usda new file mode 100644 index 0000000000000000000000000000000000000000..2dbc3e0ca0e8901b3d21466df0979ae39edd0fb2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_117.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_117" ( + prepend payload = @./instance_117.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usd new file mode 100644 index 0000000000000000000000000000000000000000..c93f3e1066f40e5e7aa8b58d5e62afdb92baa14a Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usda new file mode 100644 index 0000000000000000000000000000000000000000..b7a324f4eac4ac2a67fc694def984b5046b5adb9 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_118.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_118" ( + prepend payload = @./instance_118.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_12.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_12.usda new file mode 100644 index 0000000000000000000000000000000000000000..1dbada06543645d483171e073819ab1c97a54495 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_12.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_12" ( + prepend payload = @./instance_12.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usd new file mode 100644 index 0000000000000000000000000000000000000000..4305bd4620c09d62a6209e399a20c779b8e8a8b8 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usda new file mode 100644 index 0000000000000000000000000000000000000000..97dea027dca7b17efadf44d4ea3e5d7bed53f4c8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_13.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_13" ( + prepend payload = @./instance_13.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usd new file mode 100644 index 0000000000000000000000000000000000000000..61963f21482f2ac45534c62b4d576b661967c0a4 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usda new file mode 100644 index 0000000000000000000000000000000000000000..89cddc1a945d057f6b92207612691f633808720f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_14.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_14" ( + prepend payload = @./instance_14.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_15.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_15.usda new file mode 100644 index 0000000000000000000000000000000000000000..b6235e7218a69f6f2415a5942c3c08d05af025e1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_15.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_15" ( + prepend payload = @./instance_15.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usd new file mode 100644 index 0000000000000000000000000000000000000000..6c562474bde155e5719109ca706bf232a4cf5e92 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usda new file mode 100644 index 0000000000000000000000000000000000000000..8dd949ced419235233207c2f77e4f93496e5a86a --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_16.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_16" ( + prepend payload = @./instance_16.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usd new file mode 100644 index 0000000000000000000000000000000000000000..8f37d91bc6cc8470b4eab4319c5a0605a8653f1a Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usda new file mode 100644 index 0000000000000000000000000000000000000000..c0354e424122a86e86b06e04912b01e1b525c7f0 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_17.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_17" ( + prepend payload = @./instance_17.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usd new file mode 100644 index 0000000000000000000000000000000000000000..0eb822c92cab52ff8896ffe00970a24e26a3f970 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usda new file mode 100644 index 0000000000000000000000000000000000000000..61fda34be7a504a1c39006fc9d328200f0916ab3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_18.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_18" ( + prepend payload = @./instance_18.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_19.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_19.usd new file mode 100644 index 0000000000000000000000000000000000000000..5b31b932578772e0c45f80461dc6c2ab3829ccf9 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_19.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_2.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_2.usda new file mode 100644 index 0000000000000000000000000000000000000000..8fa93c89f2dfe2ab5160134cf19ef7ec6894f968 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_2.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_2" ( + prepend payload = @./instance_2.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_20.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_20.usd new file mode 100644 index 0000000000000000000000000000000000000000..43220f794079dc3ada6101f8393784eed0715e14 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_20.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usd new file mode 100644 index 0000000000000000000000000000000000000000..61c946cea17fe8ef79e75b6eeb2bbc49a52ed759 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usda new file mode 100644 index 0000000000000000000000000000000000000000..59ef4b485990c8a7725fe5e6209a535506206bb5 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_21.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_21" ( + prepend payload = @./instance_21.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usd new file mode 100644 index 0000000000000000000000000000000000000000..334ed572df351136401f9902977f940c8276a7ba Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usda new file mode 100644 index 0000000000000000000000000000000000000000..ed557fd00553f2298341606c2aad69cbd0ed4edb --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_22.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_22" ( + prepend payload = @./instance_22.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_23.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_23.usda new file mode 100644 index 0000000000000000000000000000000000000000..05c170939ff9d51f6f8bcfb52b919f5459587689 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_23.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_23" ( + prepend payload = @./instance_23.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usd new file mode 100644 index 0000000000000000000000000000000000000000..1eff36f561fc4fb4db6e1e91523febf97fa1a28a Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usda new file mode 100644 index 0000000000000000000000000000000000000000..f0c3d842f440f260e38c50ccb102f7698fe6980e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_24.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_24" ( + prepend payload = @./instance_24.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usd new file mode 100644 index 0000000000000000000000000000000000000000..cc44676ebedbd35af346db6fc9dc2ce1531dab9c Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usda new file mode 100644 index 0000000000000000000000000000000000000000..f6e1a237675fef747939c7f30190e1ba8e25fabf --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_25.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_25" ( + prepend payload = @./instance_25.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_26.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_26.usda new file mode 100644 index 0000000000000000000000000000000000000000..6b722f17a9afe4672f194ffdd9679ef016da03f4 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_26.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_26" ( + prepend payload = @./instance_26.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_27.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_27.usda new file mode 100644 index 0000000000000000000000000000000000000000..9a5088ba330cefa8780e72427d4656ece4337804 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_27.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_27" ( + prepend payload = @./instance_27.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usd new file mode 100644 index 0000000000000000000000000000000000000000..e297e92c0079ebd0a38c7dc3390ebbdbc09af64b Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usda new file mode 100644 index 0000000000000000000000000000000000000000..b603fd1492732c82174a7bfe1f7eaa8cc41e435f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_28.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_28" ( + prepend payload = @./instance_28.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_29.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_29.usd new file mode 100644 index 0000000000000000000000000000000000000000..d0a5d61cb3b405fbe082199a56d569ca20d6dcb5 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_29.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usd new file mode 100644 index 0000000000000000000000000000000000000000..022d3365a4ab4df770ba13bc16e489fdf542020d Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usda new file mode 100644 index 0000000000000000000000000000000000000000..b89ed3738498618e5e5bde00752d2391c16ea7f8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_3.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_3" ( + prepend payload = @./instance_3.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usd new file mode 100644 index 0000000000000000000000000000000000000000..76216803769595491aa2272786686ee6c6566293 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usda new file mode 100644 index 0000000000000000000000000000000000000000..6e25ca59fa3e944bd7703adb576fc7c4bb9e7193 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_30.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_30" ( + prepend payload = @./instance_30.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usd new file mode 100644 index 0000000000000000000000000000000000000000..85f2bb62d3de3613d323bf06872af6dbe4daae77 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usda new file mode 100644 index 0000000000000000000000000000000000000000..ecbf2cbf88d60ef88bfbe3d9224483e9389afe83 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_31.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_31" ( + prepend payload = @./instance_31.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_32.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_32.usd new file mode 100644 index 0000000000000000000000000000000000000000..de8054d4561ca8206c00910768775113fadb3adb Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_32.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usd new file mode 100644 index 0000000000000000000000000000000000000000..ff8f87e00006504f809cc31c3d140f9e7af84076 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usda new file mode 100644 index 0000000000000000000000000000000000000000..ea42801397886f9a6172fe2db9f0edf157190c06 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_34.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_34" ( + prepend payload = @./instance_34.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usd new file mode 100644 index 0000000000000000000000000000000000000000..a7fbcfc52bd2b4a1832e87b7874c17187d5c4666 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usda new file mode 100644 index 0000000000000000000000000000000000000000..16d468d303091b03137753cbeb2e3bfcea16c563 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_35.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_35" ( + prepend payload = @./instance_35.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_36.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_36.usd new file mode 100644 index 0000000000000000000000000000000000000000..d5225724866e802bb369f7626aed1e6a9577a4da Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_36.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usd new file mode 100644 index 0000000000000000000000000000000000000000..af7916f45dd0f0e1e9ef0f821f311823a4fabbd8 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usda new file mode 100644 index 0000000000000000000000000000000000000000..77b0d0df397b45166b51649d88abae5e712d174d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_37.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_37" ( + prepend payload = @./instance_37.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usd new file mode 100644 index 0000000000000000000000000000000000000000..9c1b5c8038b4b26947a33c8f01dd932eef9f34eb Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usda new file mode 100644 index 0000000000000000000000000000000000000000..ccc6f45efcb82170d7a45e06dbcae1506ad37bf1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_38.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_38" ( + prepend payload = @./instance_38.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usd new file mode 100644 index 0000000000000000000000000000000000000000..1d98241170a0570581c69ca51fd1eefac938b7c9 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usda new file mode 100644 index 0000000000000000000000000000000000000000..a0844fd5834c890563b7a274d1e8e8ecc3be07d1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_39.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_39" ( + prepend payload = @./instance_39.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_4.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_4.usd new file mode 100644 index 0000000000000000000000000000000000000000..9d3551387cd23a0153d908fa25aa228ef866674f Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_4.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usd new file mode 100644 index 0000000000000000000000000000000000000000..e9845c5f3f76bedacac00f4ac74e4f2651a01eba Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usda new file mode 100644 index 0000000000000000000000000000000000000000..771a5e7ee38253e1ad376df8888f81c087830562 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_40.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_40" ( + prepend payload = @./instance_40.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_42.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_42.usd new file mode 100644 index 0000000000000000000000000000000000000000..88d3cadff7c999f1a5056149308549708879eb20 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_42.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_43.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_43.usda new file mode 100644 index 0000000000000000000000000000000000000000..3a0e3fe3c912d07ff10d04c909fc9481916f0f38 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_43.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_43" ( + prepend payload = @./instance_43.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_44.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_44.usd new file mode 100644 index 0000000000000000000000000000000000000000..c565dcee56818089f9ec32d842427c73b9ace55c Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_44.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_45.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_45.usd new file mode 100644 index 0000000000000000000000000000000000000000..b0a4ab86317e53a478b417c33b7afbe0d87eaf60 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_45.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_46.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_46.usda new file mode 100644 index 0000000000000000000000000000000000000000..32b1bf7d41f28c205a2cf57e5ebcaed17288875c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_46.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_46" ( + prepend payload = @./instance_46.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usd new file mode 100644 index 0000000000000000000000000000000000000000..6605055bba6779a4bb70a38c54c9a8371caf4aa7 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usda new file mode 100644 index 0000000000000000000000000000000000000000..4ec514eab83fcf90ae0bf01683ff2da04b693cf8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_47.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_47" ( + prepend payload = @./instance_47.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_48.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_48.usd new file mode 100644 index 0000000000000000000000000000000000000000..6323593f8ceab179c36d5ec2bf0d13870fcaeefe Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_48.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_49.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_49.usd new file mode 100644 index 0000000000000000000000000000000000000000..4bbf396bf151f96951887b4bcb4861dbb963b634 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_49.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usd new file mode 100644 index 0000000000000000000000000000000000000000..e78a1aa8ecd06995838eb32fcce9bdb7f238cd4b Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usda new file mode 100644 index 0000000000000000000000000000000000000000..290e18df75c09db6f736e0c5314b9b21588d17af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_5.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_5" ( + prepend payload = @./instance_5.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_50.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_50.usd new file mode 100644 index 0000000000000000000000000000000000000000..f76ef332537cb473d6a789cd0459ea167f9f6992 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_50.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usd new file mode 100644 index 0000000000000000000000000000000000000000..b7cdf0358ad3b9f010b6b1b0aad9845f580f28df Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usda new file mode 100644 index 0000000000000000000000000000000000000000..7ecc380311ab75ebceb6a01ec535b75233aefb51 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_51.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_51" ( + prepend payload = @./instance_51.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usd new file mode 100644 index 0000000000000000000000000000000000000000..eb6612798d34d53eb622d90ede29e5072b8da662 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usda new file mode 100644 index 0000000000000000000000000000000000000000..6de2c3c918b08dac691c4f832c6a30e442c1652e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_52.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_52" ( + prepend payload = @./instance_52.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usd new file mode 100644 index 0000000000000000000000000000000000000000..5444d613a0d805021f82d4f6e7057ae43ed6e581 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usda new file mode 100644 index 0000000000000000000000000000000000000000..9c0cdd3c5decf4305fed4c0b01f68510654bf288 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_53.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_53" ( + prepend payload = @./instance_53.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_54.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_54.usd new file mode 100644 index 0000000000000000000000000000000000000000..849d7670d8ab78308445f4aba2c21e55d808cac4 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_54.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usd new file mode 100644 index 0000000000000000000000000000000000000000..4882c8ad9b8cb07067bbba254570b1ac05d8df32 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usda new file mode 100644 index 0000000000000000000000000000000000000000..194f2466ce4ebc6cfa2adff77be5a5fd901f2e1f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_55.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_55" ( + prepend payload = @./instance_55.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_56.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_56.usda new file mode 100644 index 0000000000000000000000000000000000000000..1a0381876e919a5b179ff900fc695c1c275852d1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_56.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_56" ( + prepend payload = @./instance_56.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usd new file mode 100644 index 0000000000000000000000000000000000000000..7f251d7c3308acdec93824d56e1db69dd1ead029 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usda new file mode 100644 index 0000000000000000000000000000000000000000..c113a311d2ccf649fcaa6f5eb45938bf317e584e --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_57.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_57" ( + prepend payload = @./instance_57.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_58.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_58.usda new file mode 100644 index 0000000000000000000000000000000000000000..101289078808594af456d71f38f2c6f41147111b --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_58.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_58" ( + prepend payload = @./instance_58.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usd new file mode 100644 index 0000000000000000000000000000000000000000..ae3264fed667548b26df8af6737a5d9250dded63 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usda new file mode 100644 index 0000000000000000000000000000000000000000..501a0960e4d6f64a5bcf5eb0cd46ab6d833d3730 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_59.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_59" ( + prepend payload = @./instance_59.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usd new file mode 100644 index 0000000000000000000000000000000000000000..fca2442d000a0b2891797e732d6b59942aac0294 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usda new file mode 100644 index 0000000000000000000000000000000000000000..e2c1bb27c11191e6088d676d79df4691a28dcf78 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_6.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_6" ( + prepend payload = @./instance_6.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_60.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_60.usda new file mode 100644 index 0000000000000000000000000000000000000000..5d0714405c0a192c07ff5b06a88f8ac217c63cbc --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_60.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_60" ( + prepend payload = @./instance_60.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_61.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_61.usd new file mode 100644 index 0000000000000000000000000000000000000000..2d61c43aed2234285cc293eae829b3c5167953bb Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_61.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usd new file mode 100644 index 0000000000000000000000000000000000000000..903881526c2fbf929f1834636a423307fb6510ba Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usda new file mode 100644 index 0000000000000000000000000000000000000000..62e0f2f72597c440b186f177ad4e678b78586b32 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_62.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_62" ( + prepend payload = @./instance_62.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_64.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_64.usda new file mode 100644 index 0000000000000000000000000000000000000000..7a2ae5bd58e9f7b3672c996d2d10ba5e82416ed6 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_64.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_64" ( + prepend payload = @./instance_64.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usd new file mode 100644 index 0000000000000000000000000000000000000000..a86aa5ed56d02c3ceb826bda5efd78efca812091 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usda new file mode 100644 index 0000000000000000000000000000000000000000..603960dfa2c65d6c4dc3e94f28ba6f3be413c274 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_66.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_66" ( + prepend payload = @./instance_66.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_68.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_68.usda new file mode 100644 index 0000000000000000000000000000000000000000..a0c5ca88dbbfb4853531e3c17b1ccdf6be857a91 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_68.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_68" ( + prepend payload = @./instance_68.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_69.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_69.usd new file mode 100644 index 0000000000000000000000000000000000000000..4d528ef20b79f7cf7bad59d794548040765b7697 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_69.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usd new file mode 100644 index 0000000000000000000000000000000000000000..95efbf55bd6bad96e026d4bbafe483a8abb1d76f Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usda new file mode 100644 index 0000000000000000000000000000000000000000..e946eac3a5fb66ede1862ea6d41ae5d43ec8ff55 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_7.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_7" ( + prepend payload = @./instance_7.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usd new file mode 100644 index 0000000000000000000000000000000000000000..8554d4aa4bd9dbef6a182dca100d272ca44264a1 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usda new file mode 100644 index 0000000000000000000000000000000000000000..d843623593e65c8887547f07ab2dbf6369bfa78f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_70.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_70" ( + prepend payload = @./instance_70.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usd new file mode 100644 index 0000000000000000000000000000000000000000..e0fa4367240107898ca41568be7fd372738a3f98 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usda new file mode 100644 index 0000000000000000000000000000000000000000..c9ec04c816ced76cf462ccad4575b2b09100394c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_71.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_71" ( + prepend payload = @./instance_71.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_72.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_72.usda new file mode 100644 index 0000000000000000000000000000000000000000..4f318ea2fd8cfb8331a0ec8063a70e37a3f7ef83 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_72.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_72" ( + prepend payload = @./instance_72.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usd new file mode 100644 index 0000000000000000000000000000000000000000..325bec9e165e8879455a92fc04eb4c071ba3cd8f Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usda new file mode 100644 index 0000000000000000000000000000000000000000..09ec4bed71024a5fa6c360f35b0fbbe16b2a0068 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_73.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_73" ( + prepend payload = @./instance_73.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usd new file mode 100644 index 0000000000000000000000000000000000000000..73567202dd88ede52d2a2698f21566a7c41ecd55 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usda new file mode 100644 index 0000000000000000000000000000000000000000..777680fd625d30c8f859ae852354a5f211bd4dd7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_74.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_74" ( + prepend payload = @./instance_74.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_75.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_75.usda new file mode 100644 index 0000000000000000000000000000000000000000..c7572b0113c50beef130f591e92f569d8de65538 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_75.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_75" ( + prepend payload = @./instance_75.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_76.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_76.usda new file mode 100644 index 0000000000000000000000000000000000000000..253ba9e10920432d99ee6dd7bd1705b7ace0fb1d --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_76.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_76" ( + prepend payload = @./instance_76.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usd new file mode 100644 index 0000000000000000000000000000000000000000..48ccb5b5887ed9736fbe4b7d0def7ffed1c4ae5b Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usda new file mode 100644 index 0000000000000000000000000000000000000000..62ee76dbb507ee84fcad5290387f3d6fe8801dbd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_77.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_77" ( + prepend payload = @./instance_77.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usd new file mode 100644 index 0000000000000000000000000000000000000000..c5629f8cf8ccda585f24aeea3ef8d7886e15af33 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usda new file mode 100644 index 0000000000000000000000000000000000000000..f5133ed20b3f4390024a599b0c15dca441f9e060 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_79.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_79" ( + prepend payload = @./instance_79.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_8.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_8.usda new file mode 100644 index 0000000000000000000000000000000000000000..f1fea9b72ffa81cdc7bed51c5a040b37cf885ac1 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_8.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_8" ( + prepend payload = @./instance_8.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_80.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_80.usd new file mode 100644 index 0000000000000000000000000000000000000000..84b32145fb7681b870b38cf1184168f644c6a06f Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_80.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_81.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_81.usd new file mode 100644 index 0000000000000000000000000000000000000000..e20f33e43a8d30a76596c078b090c3e929ed1dea Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_81.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usd new file mode 100644 index 0000000000000000000000000000000000000000..4de98c72d352fc586a88e2ff4595cfee99dbf807 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usda new file mode 100644 index 0000000000000000000000000000000000000000..4b1ba7425a2407e12172f0dc6eb0de65b6aea648 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_82.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_82" ( + prepend payload = @./instance_82.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usd new file mode 100644 index 0000000000000000000000000000000000000000..252c32727e04789e12240e68cf3487769cb8a7ce Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usda new file mode 100644 index 0000000000000000000000000000000000000000..918936f72f0d51853a0dd6a7c32ca03b08f33cc2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_83.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_83" ( + prepend payload = @./instance_83.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_84.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_84.usd new file mode 100644 index 0000000000000000000000000000000000000000..3fbccb8c0315992d470cc91f3a341b5fc1998117 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_84.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usd new file mode 100644 index 0000000000000000000000000000000000000000..a70760e3d0e61ddb726932af8a128ddc0ae220f5 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usda new file mode 100644 index 0000000000000000000000000000000000000000..61311628f7af2030b5a0ef65b113487668122fbd --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_85.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_85" ( + prepend payload = @./instance_85.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usd new file mode 100644 index 0000000000000000000000000000000000000000..dd41853fa533fc271dc609b3110acef856e5d779 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usda new file mode 100644 index 0000000000000000000000000000000000000000..4eed9cfe43f5cd3b46bf6b1a899a124c3d601fc3 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_87.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_87" ( + prepend payload = @./instance_87.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usd new file mode 100644 index 0000000000000000000000000000000000000000..ee3fb85000dfc478d3b95d6a96dcc2bc9a95f34b Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usda new file mode 100644 index 0000000000000000000000000000000000000000..038a71b276cd7bbf629e46963974487975ffb058 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_88.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_88" ( + prepend payload = @./instance_88.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_89.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_89.usd new file mode 100644 index 0000000000000000000000000000000000000000..d239bb5bb48c95d246279159e8219982ee2520ef Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_89.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usd new file mode 100644 index 0000000000000000000000000000000000000000..a1bf198b87e0c92f77406fc2cc20d06a85e2eeca Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usda new file mode 100644 index 0000000000000000000000000000000000000000..94b012e1394b4ff0baaf40b03484a4fb150b443c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_9.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_9" ( + prepend payload = @./instance_9.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_90.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_90.usda new file mode 100644 index 0000000000000000000000000000000000000000..bcb2f590012776b6c878dbdbdb1fc5553b1fbd28 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_90.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_90" ( + prepend payload = @./instance_90.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usd new file mode 100644 index 0000000000000000000000000000000000000000..e2853925dbf96aa6641bba4597e301c29a71be8c Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usda new file mode 100644 index 0000000000000000000000000000000000000000..5c84d165f9090257a29847ffbbb3e4738db58492 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_91.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_91" ( + prepend payload = @./instance_91.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usd new file mode 100644 index 0000000000000000000000000000000000000000..00a15f80f6ea575cacd61bca7e6d556a07743754 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usda new file mode 100644 index 0000000000000000000000000000000000000000..3c18a1404c761f23efe21496afd1bc7b596e77f2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_92.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_92" ( + prepend payload = @./instance_92.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usd new file mode 100644 index 0000000000000000000000000000000000000000..2bcd499fd431906e70fbbf2005c1b2093f6406c7 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usda new file mode 100644 index 0000000000000000000000000000000000000000..16105452232d2cf7d3c2f374aad59888b6cfbbf8 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_93.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_93" ( + prepend payload = @./instance_93.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usd new file mode 100644 index 0000000000000000000000000000000000000000..d22c3ccfbc2503f5782ffb87b0bbd63ea37eeb70 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usda new file mode 100644 index 0000000000000000000000000000000000000000..c933a1834fe6c40f5e0b3b5658daa1d6d0d6ee18 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_94.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_94" ( + prepend payload = @./instance_94.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usd new file mode 100644 index 0000000000000000000000000000000000000000..8d15736ec6a9cd94f6565c69020d8ba3060123ef Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usda new file mode 100644 index 0000000000000000000000000000000000000000..a95ee9cb829b29bf546c34ea462aea96598cfc5f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_95.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_95" ( + prepend payload = @./instance_95.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_96.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_96.usda new file mode 100644 index 0000000000000000000000000000000000000000..29bb8efe6113e59c1d31d614ac61e528c701dfb2 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_96.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_96" ( + prepend payload = @./instance_96.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_97.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_97.usda new file mode 100644 index 0000000000000000000000000000000000000000..a30eea9c6756924a51f79e02df84b6d5586f669c --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_97.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_97" ( + prepend payload = @./instance_97.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usd new file mode 100644 index 0000000000000000000000000000000000000000..23e6836d77f5f94b34693b1d07021f97cb8c43a7 Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usda new file mode 100644 index 0000000000000000000000000000000000000000..49d6d28fcfd056be737a28e0890df089274ac71a --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_98.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_98" ( + prepend payload = @./instance_98.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usd b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usd new file mode 100644 index 0000000000000000000000000000000000000000..9e9c6b5c7293f0ab7eddb929458b1ff185d1992d Binary files /dev/null and b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usd differ diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usda new file mode 100644 index 0000000000000000000000000000000000000000..e4daa2f2e2d4fdc9280b187fbb0091205a20c409 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/instance_99.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_instance_99" ( + prepend payload = @./instance_99.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/DayMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/DayMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2065d8e637cf60ef12e03a73082728622aaa7044 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/DayMaterial.mdl @@ -0,0 +1,67 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material DayMaterial( + float Flat = 1.0 + [[ + anno::display_name("Flat"), + anno::ui_order(32) + ]], + uniform texture_2d img = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("img"), + anno::ui_order(32), + sampler_color() + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + + float3 Normal_mdl = float3(0.0,0.0,1.0); + + float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z)); + + float3 EmissiveColor_mdl = Local1; + float Opacity_mdl = Local0.w; + float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = float3(0.0,0.0,0.0); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = 0.5; + float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num595f215bc6dce910dd2f0f2d.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num595f215bc6dce910dd2f0f2d.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ac7634546a995697b53c4df2f4c37e03a2857eff --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num595f215bc6dce910dd2f0f2d.mdl @@ -0,0 +1,284 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num595f215bc6dce910dd2f0f2d( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + + float3 EmissiveColor_mdl = Local28; + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num5a9f9646b532763634b82b1a.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num5a9f9646b532763634b82b1a.mdl new file mode 100644 index 0000000000000000000000000000000000000000..848e5e11886cdc8797228b75e546b7288b53f49f --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/Num5a9f9646b532763634b82b1a.mdl @@ -0,0 +1,307 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Translucent import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material Num5a9f9646b532763634b82b1a( + uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear) + [[ + anno::display_name("Normal_Tex"), + anno::ui_order(32), + anno::in_group("Normal"), + sampler_normal() + ]], + float4 Normal_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Normal_UVA"), + anno::ui_order(32), + anno::in_group("Normal") + ]], + float EmissiveIntensity = 0.0 + [[ + anno::display_name("EmissiveIntensity"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsEmissiveTex = 0.0 + [[ + anno::display_name("IsEmissiveTex"), + anno::in_group("EmissiveColor") + ]], + float4 Emissive_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Emissive_Color"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Emissive_Tex"), + anno::ui_order(32), + anno::in_group("EmissiveColor"), + sampler_color() + ]], + float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Emissive_UVA"), + anno::ui_order(32), + anno::in_group("EmissiveColor") + ]], + float IsBaseColorTex = 0.0 + [[ + anno::display_name("IsBaseColorTex"), + anno::in_group("BaseColor") + ]], + float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("BaseColor_Color"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("BaseColor_Tex"), + anno::ui_order(32), + anno::in_group("BaseColor"), + sampler_color() + ]], + float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("BaseColor_UVA"), + anno::ui_order(32), + anno::in_group("BaseColor") + ]], + float IsMetallicTex = 0.0 + [[ + anno::display_name("IsMetallicTex"), + anno::in_group("Metallic") + ]], + float4 Metallic_Color = float4(0.0,0.0,0.0,1.0) + [[ + anno::display_name("Metallic_Color"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb) + [[ + anno::display_name("Metallic_Tex"), + anno::ui_order(32), + anno::in_group("Metallic"), + sampler_color() + ]], + float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Metallic_UVA"), + anno::ui_order(32), + anno::in_group("Metallic") + ]], + float IsSpecularTex = 0.0 + [[ + anno::display_name("IsSpecularTex"), + anno::in_group("Specular") + ]], + float4 Specular_Color = float4(1.0,1.0,1.0,1.0) + [[ + anno::display_name("Specular_Color"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Specular_Tex"), + anno::ui_order(32), + anno::in_group("Specular"), + sampler_color() + ]], + float4 Specular_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Specular_UVA"), + anno::ui_order(32), + anno::in_group("Specular") + ]], + float IsGlossTex = 0.0 + [[ + anno::display_name("IsGlossTex"), + anno::in_group("Roughness") + ]], + float4 Gloss_Color = float4(0.1,0.1,0.1,1.0) + [[ + anno::display_name("Gloss_Color"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb) + [[ + anno::display_name("Gloss_Tex"), + anno::ui_order(32), + anno::in_group("Roughness"), + sampler_color() + ]], + float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0) + [[ + anno::display_name("Gloss_UVA"), + anno::ui_order(32), + anno::in_group("Roughness") + ]], + float Opacity = 0.5 + [[ + anno::display_name("Opacity"), + anno::ui_order(32), + anno::in_group("Translucent") + ]], + float PolygonOffset = 0.0 + [[ + anno::display_name("PolygonOffset"), + anno::ui_order(32), + anno::in_group("WorldPosition") + ]], + uniform float SwitchRefraction = 0.0 + [[ + anno::display_name("SwitchRefraction"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + uniform float FresnelB = 1.517 + [[ + anno::display_name("FresnelB"), + anno::ui_order(32), + anno::in_group("Refraction") + ]], + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 Local82 = ::camera_position(); + float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0)); + float Local84 = math::dot(Local83, Local83); + float Local85 = math::sqrt(Local84); + float3 Local86 = (Local83 / Local85); + float3 Local87 = (Local86 * PolygonOffset); + + float3 WorldPositionOffset_mdl = Local87; + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (float2(0.5,0.5) * -1.0); + float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x); + float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y); + float2 Local3 = (Local0 + float2(Local1,Local2)); + float Local4 = (3.141592 * -2.0); + float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4); + float Local6 = (Local5 * 6.283185); + float Local7 = math::cos(Local6); + float Local8 = math::sin(Local6); + float Local9 = (Local8 * -1.0); + float Local10 = math::dot(Local3, float2(Local7,Local9)); + float Local11 = math::dot(Local3, float2(Local8,Local7)); + float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11)); + float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z)); + + float3 Normal_mdl = Local14; + + float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x); + float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y); + float2 Local17 = (Local0 + float2(Local15,Local16)); + float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4); + float Local19 = (Local18 * 6.283185); + float Local20 = math::cos(Local19); + float Local21 = math::sin(Local19); + float Local22 = (Local21 * -1.0); + float Local23 = math::dot(Local17, float2(Local20,Local22)); + float Local24 = math::dot(Local17, float2(Local21,Local20)); + float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24)); + float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z)); + float3 Local28 = (EmissiveIntensity * Local27); + float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x); + float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y); + float2 Local31 = (Local0 + float2(Local29,Local30)); + float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4); + float Local33 = (Local32 * 6.283185); + float Local34 = math::cos(Local33); + float Local35 = math::sin(Local33); + float Local36 = (Local35 * -1.0); + float Local37 = math::dot(Local31, float2(Local34,Local36)); + float Local38 = math::dot(Local31, float2(Local35,Local34)); + float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38)); + float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z)); + float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x); + float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y); + float2 Local44 = (Local0 + float2(Local42,Local43)); + float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4); + float Local46 = (Local45 * 6.283185); + float Local47 = math::cos(Local46); + float Local48 = math::sin(Local46); + float Local49 = (Local48 * -1.0); + float Local50 = math::dot(Local44, float2(Local47,Local49)); + float Local51 = math::dot(Local44, float2(Local48,Local47)); + float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51)); + float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z)); + float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x); + float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y); + float2 Local57 = (Local0 + float2(Local55,Local56)); + float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4); + float Local59 = (Local58 * 6.283185); + float Local60 = math::cos(Local59); + float Local61 = math::sin(Local59); + float Local62 = (Local61 * -1.0); + float Local63 = math::dot(Local57, float2(Local60,Local62)); + float Local64 = math::dot(Local57, float2(Local61,Local60)); + float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64)); + float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z)); + float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x); + float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y); + float2 Local70 = (Local0 + float2(Local68,Local69)); + float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4); + float Local72 = (Local71 * 6.283185); + float Local73 = math::cos(Local72); + float Local74 = math::sin(Local72); + float Local75 = (Local74 * -1.0); + float Local76 = math::dot(Local70, float2(Local73,Local75)); + float Local77 = math::dot(Local70, float2(Local74,Local73)); + float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77)); + float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat); + float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z)); + float3 Local81 = (1.0 - Local80); + float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB); + + float3 EmissiveColor_mdl = Local28; + float Opacity_mdl = Opacity; + float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f; + float3 BaseColor_mdl = Local41; + float Metallic_mdl = Local54.x; + float Specular_mdl = Local67.x; + float Roughness_mdl = Local81.x; + float2 Refraction_mdl = float2(Local89,Local89); + + } in + ::OmniUe4Translucent( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: Opacity_mdl, + opacity_mask: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + refraction: Refraction_mdl.x, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Base.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Base.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a441fbaf28040302c7aaabfbcf14b24a85bdf643 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Base.mdl @@ -0,0 +1,224 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - merge unlit template +//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side +//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - /* flip_tangent_v */ + tangent_v * normal.y + + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Base( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + float clearcoat_weight = 0.0, + float clearcoat_roughness = 0.0, + float3 clearcoat_normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform bool is_tangent_space_normal = true, + uniform bool two_sided = false, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Base"), + anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::saturate(metallic); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_clearcoat_weight = math::saturate(clearcoat_weight); + float final_clearcoat_roughness = math::saturate(clearcoat_roughness); + float3 final_normal = math::normalize(normal); + float3 final_clearcoat_normal = math::normalize(clearcoat_normal); + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color), + normal: the_normal); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + // clearcoat layer + float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0); + float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness; + + float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_clearcoat_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ); + + + bsdf clearcoat = + df::custom_curve_layer( + base: df::weighted_layer( + layer: dielectric_metal_mix, + weight: 1.0, + normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal + ), + layer: df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_alpha, + tint: color(1.0) + ), + normal_reflectivity: 0.04, + grazing_reflectivity: clearcoat_grazing_refl, + normal: the_clearcoat_normal, + weight: final_clearcoat_weight + ); + bsdf surface = is_unlit ? bsdf() : clearcoat; +} +in material( + thin_walled: two_sided, // Graphene? + surface: material_surface( + scattering: surface, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + backface: material_surface( + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: final_emissive_color + ) + ), + geometry: material_geometry( + displacement: displacement, + normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(), + cutout_opacity: enable_opacity ? opacity : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Function.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Function.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f0801afff6f0870ea2574c9e9b6e2043e79e9a79 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Function.mdl @@ -0,0 +1,1413 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.1 - using absolute import paths when importing standard modules + +mdl 1.6; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + + +export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true) +[[ + anno::description("convert from RH to LH"), + anno::noinline() +]] +{ + float4x4 ZupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, -1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4x4 YupConversion = float4x4( + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + ); + + float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f); + + vec4 = vec4 * (up_z ? ZupConversion : YupConversion); + + return float3(vec4.x, vec4.y, vec4.z); +} + +export float3 transform_vector_from_tangent_to_world(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from tangent space to world space"), + anno::noinline() +]] +{ + /* flip_tangent_v */ + return convert_to_left_hand( + tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z, + up_z, false); +} + +export float3 transform_vector_from_world_to_tangent(float3 vector, + uniform bool up_z = true, + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0)) +[[ + anno::description("Transform vector from world space to tangent space"), + anno::noinline() +]] +{ + float3 vecRH = convert_to_left_hand(vector, up_z, false); + /* flip_tangent_v */ + return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) + + vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) + + vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z); +} + +export float4 unpack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Unpack a normal stored in a normal map"), + anno::noinline() +]] +{ + float2 normal_xy = float2(texture_sample.x, texture_sample.y); + + normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0); + float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) ); + return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 ); +} + +// for get color value from normal. +export float4 pack_normal_map( + float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0) + ) +[[ + anno::description("Pack to color from a normal") +]] +{ + float2 return_xy = float2(texture_sample.x, texture_sample.y); + + return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0); + + return float4( return_xy.x, return_xy.y, 0.0, 1.0 ); +} + +export float4 greyscale_texture_lookup( + float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0) + ) +[[ + anno::description("Sampling a greyscale texture"), + anno::noinline() +]] +{ + return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x); +} + +export float3 pixel_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Pixel normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 vertex_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Vertex normal in world space"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); +} + +export float3 landscape_normal_world_space(uniform bool up_z = true) +[[ + anno::description("Landscape normal in world space") +]] +{ + float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0; + + float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y); + return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY)))); +} + +// Different implementation specific between mdl and hlsl for smoothstep +export float smoothstep(float a, float b, float l) +{ + if (a < b) + { + return math::smoothstep(a, b, l); + } + else if (a > b) + { + return 1.0 - math::smoothstep(b, a, l); + } + else + { + return l <= a ? 0.0 : 1.0; + } +} + +export float2 smoothstep(float2 a, float2 b, float2 l) +{ + return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y)); +} + +export float3 smoothstep(float3 a, float3 b, float3 l) +{ + return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z)); +} + +export float4 smoothstep(float4 a, float4 b, float4 l) +{ + return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w)); +} + +export float2 smoothstep(float2 a, float2 b, float l) +{ + return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l)); +} + +export float3 smoothstep(float3 a, float3 b, float l) +{ + return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l)); +} + +export float4 smoothstep(float4 a, float4 b, float l) +{ + return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l)); +} + +export float2 smoothstep(float a, float b, float2 l) +{ + return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y)); +} + +export float3 smoothstep(float a, float b, float3 l) +{ + return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z)); +} + +export float4 smoothstep(float a, float b, float4 l) +{ + return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w)); +} + +//------------------ Random from UE4 ----------------------- +float length2(float3 v) +{ + return math::dot(v, v); +} + +float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v) +{ + const float2 ZShear = float2(17.0f, 89.0f); + + float2 OffsetA = v.z * ZShear; + float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f; + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat); + return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0; +} + +float3 SkewSimplex(float3 In) +{ + return In + math::dot(In, float3(1.0 / 3.0f) ); +} +float3 UnSkewSimplex(float3 In) +{ + return In - math::dot(In, float3(1.0 / 6.0f) ); +} + +// 3D random number generator inspired by PCGs (permuted congruential generator) +// Using a **simple** Feistel cipher in place of the usual xor shift permutation step +// @param v = 3D integer coordinate +// @return three elements w/ 16 random bits each (0-0xffff). +// ~8 ALU operations for result.x (7 mad, 1 >>) +// ~10 ALU operations for result.xy (8 mad, 2 >>) +// ~12 ALU operations for result.xyz (9 mad, 3 >>) + +//TODO: uint3 +int3 Rand3DPCG16(int3 p) +{ + // taking a signed int then reinterpreting as unsigned gives good behavior for negatives + //TODO: uint3 + int3 v = int3(p); + + // Linear congruential step. These LCG constants are from Numerical Recipies + // For additional #'s, PCG would do multiple LCG steps and scramble each on output + // So v here is the RNG state + v = v * 1664525 + 1013904223; + + // PCG uses xorshift for the final shuffle, but it is expensive (and cheap + // versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps + // + // Feistel ciphers divide the state into separate parts (usually by bits) + // then apply a series of permutation steps one part at a time. The permutations + // use a reversible operation (usually ^) to part being updated with the result of + // a permutation function on the other parts and the key. + // + // In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for + // the combination function, and just multiplying the other two parts (no key) for + // the permutation function. + // + // That gives a simple mad per round. + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + v.x += v.y*v.z; + v.y += v.z*v.x; + v.z += v.x*v.y; + + // only top 16 bits are well shuffled + return v >> 16; +} + +// Wraps noise for tiling texture creation +// @param v = unwrapped texture parameter +// @param bTiling = true to tile, false to not tile +// @param RepeatSize = number of units before repeating +// @return either original or wrapped coord +float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize) +{ + return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v; +} + +// Evaluate polynomial to get smooth transitions for Perlin noise +// only needed by Perlin functions in this file +// scalar(per component): 2 add, 5 mul +float4 PerlinRamp(float4 t) +{ + return t * t * t * (t * (t * 6 - 15) + 10); +} + +// Blum-Blum-Shub-inspired pseudo random number generator +// http://www.umbc.edu/~olano/papers/mNoise.pdf +// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes +// instead, we use a single prime M just small enough not to overflow +// note that the above paper used 61, which fits in a half, but is unusably bad +// @param Integer valued floating point seed +// @return random number in range [0,1) +// ~8 ALU operations (5 *, 3 frac) +float RandBBSfloat(float seed) +{ + float BBS_PRIME24 = 4093.0; + float s = math::frac(seed / BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + s = math::frac(s * s * BBS_PRIME24); + return s; +} + +// Modified noise gradient term +// @param seed - random seed for integer lattice position +// @param offset - [-1,1] offset of evaluation point from lattice point +// @return gradient direction (xyz) and contribution (w) from this lattice point +float4 MGradient(int seed, float3 offset) +{ + //TODO uint + int rand = Rand3DPCG16(int3(seed,0,0)).x; + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000); + float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1; + return float4(direction.x, direction.y, direction.z, math::dot(direction, offset)); +} + +// compute Perlin and related noise corner seed values +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = true to return seed values for a repeating noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @param seed000-seed111 = hash function seeds for the eight corners +// @return fractional part of v +struct SeedValue +{ + float3 fv = float3(0); + float seed000 = 0; + float seed001 = 0; + float seed010 = 0; + float seed011 = 0; + float seed100 = 0; + float seed101 = 0; + float seed110 = 0; + float seed111 = 0; +}; + +SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds; + seeds.fv = math::frac(v); + float3 iv = math::floor(v); + + const float3 primes = float3(19, 47, 101); + + if (bTiling) + { // can't algebraically combine with primes + seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize)); + seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize)); + seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize)); + seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize)); + seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize)); + seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize)); + seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize)); + seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize)); + } + else + { // get to combine offsets with multiplication by primes in this case + seeds.seed000 = math::dot(iv, primes); + seeds.seed100 = seeds.seed000 + primes.x; + seeds.seed010 = seeds.seed000 + primes.y; + seeds.seed110 = seeds.seed100 + primes.y; + seeds.seed001 = seeds.seed000 + primes.z; + seeds.seed101 = seeds.seed100 + primes.z; + seeds.seed011 = seeds.seed010 + primes.z; + seeds.seed111 = seeds.seed110 + primes.z; + } + + return seeds; +} + +struct SimplexWeights +{ + float4 Result = float4(0); + float3 PosA = float3(0); + float3 PosB = float3(0); + float3 PosC = float3(0); + float3 PosD = float3(0); +}; + +// Computed weights and sample positions for simplex interpolation +// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d +SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos) +{ + SimplexWeights weights; + float3 OrthogonalPosFloor = math::floor(OrthogonalPos); + + weights.PosA = OrthogonalPosFloor; + weights.PosB = weights.PosA + float3(1, 1, 1); + + OrthogonalPos -= OrthogonalPosFloor; + + float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z)); + float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z)); + + weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z); + weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z); + + float RG = OrthogonalPos.x - OrthogonalPos.y; + float RB = OrthogonalPos.x - OrthogonalPos.z; + float GB = OrthogonalPos.y - OrthogonalPos.z; + + weights.Result.z = + math::min(math::max(0, RG), math::max(0, RB)) // X + + math::min(math::max(0, -RG), math::max(0, GB)) // Y + + math::min(math::max(0, -RB), math::max(0, -GB)); // Z + + weights.Result.w = + math::min(math::max(0, -RG), math::max(0, -RB)) // X + + math::min(math::max(0, RG), math::max(0, -GB)) // Y + + math::min(math::max(0, RB), math::max(0, GB)); // Z + + weights.Result.y = Smallest; + weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w; + + return weights; +} + +// filtered 3D gradient simple noise (few texture lookups, high quality) +// @param v >0 +// @return random number in the range -1 .. 1 +float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos) +{ + float3 OrthogonalPos = SkewSimplex(EvalPos); + + SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos); + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit) + float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA); + float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB); + float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC); + float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD); + + Weights.PosA = UnSkewSimplex(Weights.PosA); + Weights.PosB = UnSkewSimplex(Weights.PosB); + Weights.PosC = UnSkewSimplex(Weights.PosC); + Weights.PosD = UnSkewSimplex(Weights.PosD); + + float DistanceWeight; + + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight; + DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight; + float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight; + + return 32 * (a + b + c + d); +} + +// filtered 3D noise, can be optimized +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize) +{ + bTiling = true; + float3 fv = math::frac(v); + float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize); + float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize); + + const int2 ZShear = int2(17, 89); + + float2 OffsetA = iv0.z * ZShear; + float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset + if (bTiling) // tiling, have to compute from wrapped coordinates + { + OffsetB = iv1.z * ZShear; + } + + // Texture size scale factor + float ts = 1 / 128.0f; + + // texture coordinates for iv0.xy, as offset for both z slices + float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts; + float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts; + + // texture coordinates for iv1.xy, as offset for both z slices + float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates + float2 TexB1 = TexB0 + ts; + if (bTiling) // for tiling, need to compute from wrapped coordinates + { + TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts; + TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts; + } + + + // can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit) + float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 A = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 B = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 C = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 D = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 E = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 F = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 G = PerlinNoiseColor * 2 - 1; + PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat); + PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z); + float3 H = PerlinNoiseColor * 2 - 1; + + float a = math::dot(A, fv - float3(0, 0, 0)); + float b = math::dot(B, fv - float3(1, 0, 0)); + float c = math::dot(C, fv - float3(0, 1, 0)); + float d = math::dot(D, fv - float3(1, 1, 0)); + float e = math::dot(E, fv - float3(0, 0, 1)); + float f = math::dot(F, fv - float3(1, 0, 1)); + float g = math::dot(G, fv - float3(0, 1, 1)); + float h = math::dot(H, fv - float3(1, 1, 1)); + + float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0))); + + float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y); + float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y); + + return math::lerp(i, j, Weights.z); +} + +// @return random number in the range -1 .. 1 +// scalar: 6 frac, 31 mul/mad, 15 add, +float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz) +{ + // needs to be the same value when creating the PerlinNoise3D texture + float Extent = 16; + + // last texel replicated and needed for filtering + // scalar: 3 frac, 6 mul + xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1); + + // scalar: 3 frac + float3 uvw = math::frac(xyz); + // = floor(xyz); + // scalar: 3 add + float3 p0 = xyz - uvw; +// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping) + // scalar: 2*3 add 5*3 mul + float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0)); + float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping + // scalar: 3 add + float3 p = p0 + f; + // scalar: 3 mad + // TODO: need reverse??? + float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset + + // reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count) + // scalar: 4 mad, 3 mul, 3 add + float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f; + float d = NoiseSample.w * 255.f - 127; + return math::dot(xyz, n) - d; +} + +// Perlin-style "Modified Noise" +// http://www.umbc.edu/~olano/papers/index.html#mNoise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w; + float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w; + float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w; + float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w; + float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w; + float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w; + float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w; + float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D value noise - used to be incorrectly called Perlin noise +// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D +// @param bTiling = repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension +// @return random number in the range -1 .. 1 +float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize) +{ + SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize); + + float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1; + float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1; + float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1; + float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1; + float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1; + float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1; + float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1; + float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1; + + float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0)); + + float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y); + float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y); + return math::lerp(i, j, Weights.z); +} + +// 3D jitter offset within a voronoi noise cell +// @param pos - integer lattice corner +// @return random offsets vector +float3 VoronoiCornerSample(float3 pos, int Quality) +{ + // random values in [-0.5, 0.5] + float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5; + + // quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 2x2x2 search + if (Quality <= 2) + { + return math::normalize(noise) * 0.2588; + } + + // quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere + // scale factor to guarantee jittered points will be found within a 3x3x3 search + if (Quality == 3) + { + return math::normalize(noise) * 0.3090; + } + + // quality level 4: jitter to anywhere in the cell, needs 4x4x4 search + return noise; +} + +// compare previous best with a new candidate +// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed +// @param minval = location and distance of best candidate seed point before the new one +// @param candidate = candidate seed point +// @param offset = 3D offset to new candidate seed point +// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position +// @return position (if bDistanceOnly is false) and distance to closest seed point so far +float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly) +{ + if (bDistanceOnly) + { + return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset))); + } + else + { + float newdist = math::dot(offset, offset); + return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist); + } +} + +// 220 instruction Worley noise +float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly) +{ + float3 fv = math::frac(v), fv2 = math::frac(v + 0.5); + float3 iv = math::floor(v), iv2 = math::floor(v + 0.5); + + // with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away + float4 mindist = float4(0,0,0,100); + float3 p, offset; + + // quality level 3: do a 3x3x3 search + if (Quality == 3) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 1; ++offset_x) + { + for (offset_y = -1; offset_y <= 1; ++offset_y) + { + for (offset_z = -1; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + + // everybody else searches a base 2x2x2 neighborhood + else + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = 0; offset_x <= 1; ++offset_x) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // quality level 2, do extra set of points, offset by half a cell + if (Quality == 2) + { + // 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts + p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality); + mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly); + } + } + } + } + } + + // quality level 4: add extra sets of four cells in each direction + if (Quality >= 4) + { + int offset_x; + int offset_y; + int offset_z; + for (offset_x = -1; offset_x <= 2; offset_x += 3) + { + for (offset_y = 0; offset_y <= 1; ++offset_y) + { + for (offset_z = 0; offset_z <= 1; ++offset_z) + { + offset = float3(offset_x, offset_y, offset_z); + // along x axis + p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along y axis + p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + + // along z axis + p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality); + mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly); + } + } + } + } + + // transform squared distance to real distance + return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w)); +} + +// Coordinates for corners of a Simplex tetrahedron +// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011 +// @param v = 3D noise argument +// @return 4 corner locations +float4x3 SimplexCorners(float3 v) +{ + // find base corner by skewing to tetrahedral space and back + float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3); + float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6; + float3 f = v - base; + + // Find offsets to other corners (McEwan did this in tetrahedral space, + // but since skew is along x=y=z axis, this works in Euclidean space too.) + float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y); + float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0; + + // four corners + return float4x3(base, base + a1, base + a2, base + 0.5); +} + +// Improved smoothing function for simplex noise +// @param f = fractional distance to four tetrahedral corners +// @return weight for each corner +float4 SimplexSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale))); +} + +// Derivative of simplex noise smoothing function +// @param f = fractional distanc eto four tetrahedral corners +// @return derivative of smoothing function for each corner by x, y and z +float3x4 SimplexDSmooth(float4x3 f) +{ + const float scale = 1024. / 375.; // scale factor to make noise -1..1 + float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3])); + float4 s = math::saturate(2 * d); + s = -12 * scale + s*(24 * scale - s * 12 * scale); + + return float3x4( + s * float4(f[0][0], f[1][0], f[2][0], f[3][0]), + s * float4(f[0][1], f[1][1], f[2][1], f[3][1]), + s * float4(f[0][2], f[1][2], f[2][2], f[3][2])); +} + +// Simplex noise and its Jacobian derivative +// @param v = 3D noise argument +// @param bTiling = whether to repeat noise pattern +// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3 +// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w +// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz) +// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx +// You can use this to compute the noise, gradient, curl, or divergence: +// float3x4 J = JacobianSimplex_ALU(...); +// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise +// float3 Grad = J[0].xyz; // gradient of J[0].w +// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]); +// float Div = J[0][0]+J[1][1]+J[2][2]; +// All of these are confirmed to compile out all unneeded terms. +// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation. +float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize) +{ + int3 MGradientMask = int3(0x8000, 0x4000, 0x2000); + float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000); + + // corners of tetrahedron + float4x3 T = SimplexCorners(v); + // TODO: uint3 + int3 rand = int3(0); + float4x3 gvec0 = float4x3(1.0); + float4x3 gvec1 = float4x3(1.0); + float4x3 gvec2 = float4x3(1.0); + float4x3 fv = float4x3(1.0); + float3x4 grad = float3x4(1.0); + + // processing of tetrahedral vertices, unrolled + // to compute gradient at each corner + fv[0] = v - T[0]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize)))); + gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][0] = math::dot(gvec0[0], fv[0]); + grad[1][0] = math::dot(gvec1[0], fv[0]); + grad[2][0] = math::dot(gvec2[0], fv[0]); + + fv[1] = v - T[1]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize)))); + gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][1] = math::dot(gvec0[1], fv[1]); + grad[1][1] = math::dot(gvec1[1], fv[1]); + grad[2][1] = math::dot(gvec2[1], fv[1]); + + fv[2] = v - T[2]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize)))); + gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][2] = math::dot(gvec0[2], fv[2]); + grad[1][2] = math::dot(gvec1[2], fv[2]); + grad[2][2] = math::dot(gvec2[2], fv[2]); + + fv[3] = v - T[3]; + rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize)))); + gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1; + gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1; + gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1; + grad[0][3] = math::dot(gvec0[3], fv[3]); + grad[1][3] = math::dot(gvec1[3], fv[3]); + grad[2][3] = math::dot(gvec2[3], fv[3]); + + // blend gradients + float4 sv = SimplexSmooth(fv); + float3x4 ds = SimplexDSmooth(fv); + + float3x4 jacobian = float3x4(1.0); + float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major) + jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0])); + float3 vec1 = gvec1*sv + grad[1]*ds; + jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1])); + float3 vec2 = gvec2*sv + grad[2]*ds; + jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2])); + + return jacobian; +} + +// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes +// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion. +float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize) +{ + // verified, HLSL compiled out the switch if Function is a constant + switch(Function) + { + case 0: + return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position); + case 1: + return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize); + case 2: + return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position); + case 3: + return GradientNoise3D_ALU(Position, bTiling, RepeatSize); + case 4: + return ValueNoise3D_ALU(Position, bTiling, RepeatSize); + case 5: + return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0; + } + return 0; +} +//---------------------------------------------------------- + +export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize) +[[ + anno::description("Noise"), + anno::noinline() +]] +{ + Position *= Scale; + FilterWidth *= Scale; + + float Out = 0.0f; + float OutScale = 1.0f; + float InvLevelScale = 1.0f / LevelScale; + + int iFunction(Function); + int iQuality(Quality); + int iLevels(Levels); + bool bTurbulence(Turbulence); + bool bTiling(Tiling); + + for(int i = 0; i < iLevels; ++i) + { + // fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions) + OutScale *= math::saturate(1.0 - FilterWidth); + + if(bTurbulence) + { + Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale; + } + else + { + Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale; + } + + Position *= LevelScale; + RepeatSize *= LevelScale; + OutScale *= InvLevelScale; + FilterWidth *= LevelScale; + } + + if(!bTurbulence) + { + // bring -1..1 to 0..1 range + Out = Out * 0.5f + 0.5f; + } + + // Out is in 0..1 range + return math::lerp(OutputMin, OutputMax, Out); +} + +// Material node for noise functions returning a vector value +// @param LevelScale usually 2 but higher values allow efficient use of few levels +// @return in user defined range (OutputMin..OutputMax) +export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise"), + anno::noinline() +]] +{ + float4 result = float4(0,0,0,1); + float3 ret = float3(0); + int iQuality = int(Quality); + int iFunction = int(Function); + bool bTiling = Tiling > 0.0; + + float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used + + // verified, HLSL compiled out the switch if Function is a constant + switch (iFunction) + { + case 0: // Cellnoise + ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff; + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 1: // Color noise + ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 2: // Gradient + result = Jacobian[0]; + break; + case 3: // Curl + ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]); + result = float4(ret.x, ret.y, ret.z, 1); + break; + case 4: // Voronoi + result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false); + break; + } + return result; +} + +export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize) +[[ + anno::description("Vector Noise float3 version"), + anno::noinline() +]] +{ + float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize); + return float3(noise.x, noise.y, noise.z); +} + + +// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view +export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]]) +[[ + anno::description("Fresnel"), + anno::noinline() +]] +{ + return 0.0; +} + +export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]], + bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]], + bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]], + bool clamp_fresnel_dot_product [[anno::unused()]]) +[[ + anno::description("Fresnel Function"), + anno::noinline() +]] +{ + return 0.0; +} + +export float3 camera_vector(uniform bool up_z = true) +[[ + anno::description("Camera Vector"), + anno::noinline() +]] +{ + // assume camera postion is 0,0,0 + return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)); +} + +export float pixel_depth() +[[ + anno::description("Pixel Depth"), + anno::noinline() +]] +{ + return 256.0f; +} + +export float scene_depth() +[[ + anno::description("Scene Depth") +]] +{ + return 65500.0f; +} + +export float3 scene_color() +[[ + anno::description("Scene Color") +]] +{ + return float3(1.0f); +} + +export float4 vertex_color() +[[ + anno::description("Vertex Color"), + anno::noinline() +]] +{ + return float4(1.0f); +} + +export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex) +[[ + anno::description("Vertex Color for float2 PrimVar"), + anno::noinline() +]] +{ + // Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead + return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y); +} + +export float3 camera_position() +[[ + anno::description("Camera Position"), + anno::noinline() +]] +{ + return float3(1000.0f, 0, 0); +} + +export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position) +[[ + anno::description("Rotates Position about the given axis by the given angle") +]] +{ + // Project Position onto the rotation axis and find the closest point on the axis to Position + float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z); + float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis); + // Construct orthogonal axes in the plane of the rotation + float3 UAxis = Position - ClosestPointOnAxis; + float3 VAxis = math::cross(NormalizedRotationAxis, UAxis); + float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w); + // Rotate using the orthogonal axes + float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0]; + // Reconstruct the rotated world space position + float3 RotatedPosition = ClosestPointOnAxis + R; + // Convert from position to a position offset + return RotatedPosition - Position; +} + +export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset) +[[ + anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied") +]] +{ + return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset; +} + +export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true) +[[ + anno::description("Reflection vector about the specified world space normal") +]] +{ + if (bNormalizeInputNormal) + { + WorldNormal = math::normalize(WorldNormal); + } + + return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0; +} + +export float3 reflection_vector(uniform bool up_z = true) +[[ + anno::description("Reflection Vector"), + anno::noinline() +]] +{ + float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false); + return reflection_custom_world_normal(normal, false, up_z); +} + +export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]]) +[[ + anno::description("Dither TemporalAA"), + anno::noinline() +]] +{ + return AlphaThreshold; +} + +export float3 black_body( float Temp ) +[[ + anno::description("Black Body"), + anno::noinline() +]] +{ + float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp ); + float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp ); + + float x = 3*u / ( 2*u - 8*v + 4 ); + float y = 2*v / ( 2*u - 8*v + 4 ); + float z = 1 - x - y; + + float Y = 1; + float X = Y/y * x; + float Z = Y/y * z; + + float3x3 XYZtoRGB = float3x3( + float3(3.2404542, -1.5371385, -0.4985314), + float3(-0.9692660, 1.8760108, 0.0415560), + float3(0.0556434, -0.2040259, 1.0572252) + ); + + return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 ); +} + +export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances) +[[ + anno::description("Per Instance Random"), + anno::noinline() +]] +{ + float weight = state::object_id() / float(NumberInstances); + return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x; +} + +//------------------ Hair from UE4 ----------------------- +float3 hair_absorption_to_color(float3 A) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::exp(-math::sqrt(A) * D); +} + +float3 hair_color_to_absorption(float3 C) +{ + const float B = 0.3f; + float b2 = B * B; + float b3 = B * b2; + float b4 = b2 * b2; + float b5 = B * b4; + float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5); + return math::pow(math::log(C) / D, 2.0f); +} + +export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor) +[[ + anno::description("Hair Color") +]] +{ + InMelanin = math::saturate(InMelanin); + InRedness = math::saturate(InRedness); + float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f)); + float Eumelanin = Melanin * (1 - InRedness); + float Pheomelanin = Melanin * InRedness; + + float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor)); + float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f); + + return hair_absorption_to_color(Absorption + DyeAbsorption); +} + +export float3 local_object_bounds_min() +[[ + anno::description("Local Object Bounds Min"), + anno::noinline() +]] +{ + return float3(0.0); +} + +export float3 local_object_bounds_max() +[[ + anno::description("Local Object Bounds Max"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float3 object_bounds() +[[ + anno::description("Object Bounds"), + anno::noinline() +]] +{ + return float3(100.0); +} + +export float object_radius() +[[ + anno::description("Object Radius"), + anno::noinline() +]] +{ + return 100.0f; +} + +export float3 object_world_position(uniform bool up_z = true) +[[ + anno::description("Object World Position"), + anno::noinline() +]] +{ + return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0; +} + +export float3 object_orientation() +[[ + anno::description("Object Orientation"), + anno::noinline() +]] +{ + return float3(0); +} + +export float rcp(float x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float2 rcp(float2 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float3 rcp(float3 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export float4 rcp(float4 x) +[[ + anno::description("hlsl rcp"), + anno::noinline() +]] +{ + return 1.0f / x; +} + +export int BitFieldExtractI32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractI32 int"), + anno::noinline() +]] +{ + Size &= 3; + Offset &= 3; + + if (Size == 0) + return 0; + else if (Offset + Size < 32) + return (Data << (32 - Size - Offset)) >> (32 - Size); + else + return Data >> Offset; +} + +export int BitFieldExtractI32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractI32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(int(Data), int(Size), int(Offset)); +} + +export int BitFieldExtractU32(float Data, float Size, float Offset) +[[ + anno::description("BitFieldExtractU32 float"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export int BitFieldExtractU32(int Data, int Size, int Offset) +[[ + anno::description("BitFieldExtractU32 int"), + anno::noinline() +]] +{ + return BitFieldExtractI32(Data, Size, Offset); +} + +export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha) +[[ + anno::description("EyeAdaptationInverseLookup"), + anno::noinline() +]] +{ + float Adaptation = 1.0f; + + // When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation. + // So the lerped value is: + // LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T) + // Which is simplified as: + // LerpLogScale = Lerp(0,-log(Adaptation),T) + // LerpLogScale = -T * logAdaptation; + + float LerpLogScale = -Alpha * math::log(Adaptation); + float Scale = math::exp(LerpLogScale); + return LightValue * Scale; +} diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Translucent.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Translucent.mdl new file mode 100644 index 0000000000000000000000000000000000000000..483a83004b8f7d5bf820a7905d06ea2d7d5894af --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/OmniUe4Translucent.mdl @@ -0,0 +1,233 @@ +/*************************************************************************************************** + * Copyright 2020 NVIDIA Corporation. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * * Neither the name of NVIDIA CORPORATION nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + **************************************************************************************************/ + +//* 1.0.0 - first version +//* 1.0.1 - Emissive color affected by opacity +// - Support opacity mask +//* 1.0.2 - Unlit translucent +//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf +//* 1.0.4 - using absolute import paths when importing standard modules + +mdl 1.3; + +import ::df::*; +import ::state::*; +import ::math::*; +import ::tex::*; +import ::anno::*; + +float emissive_multiplier() +[[ + anno::description("the multiplier to convert UE4 emissive to raw data"), + anno::noinline() +]] +{ + return 20.0f * 128.0f; +} + +color get_translucent_tint(color base_color, float opacity) +[[ + anno::description("base color of UE4 translucent"), + anno::noinline() +]] +{ + return math::lerp(color(1.0), base_color, opacity); +} + +// Just for UE4 distilling +float get_translucent_opacity(float opacity) +[[ + anno::noinline() +]] +{ + return opacity; +} + +color get_emissive_intensity(color emissive, float opacity) +[[ + anno::description("emissive color of UE4 translucent"), + anno::noinline() +]] +{ + return emissive * opacity; +} + +float3 tangent_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in tangent space"), + anno::noinline() +]] +{ + return math::normalize( + tangent_u * normal.x - + tangent_v * normal.y + /* flip_tangent_v */ + state::normal() * (normal.z)); +} + +float3 world_space_normal( + float3 normal = float3(0.0,0.0,1.0), + float3 tangent_u = state::texture_tangent_u(0), + float3 tangent_v = state::texture_tangent_v(0) +) +[[ + anno::description("Interprets the vector in world space"), + anno::noinline() +]] +{ + return tangent_space_normal( + math::normalize( + normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) - + normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) + + normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)), + tangent_u, + tangent_v + ); +} + +export material OmniUe4Translucent( + float3 base_color = float3(0.0, 0.0, 0.0), + float metallic = 0.0, + float roughness = 0.5, + float specular = 0.5, + float3 normal = float3(0.0,0.0,1.0), + uniform bool enable_opacity = true, + float opacity = 1.0, + float opacity_mask = 1.0, + float3 emissive_color = float3(0.0, 0.0, 0.0), + float3 displacement = float3(0.0), + uniform float refraction = 1.0, + uniform bool two_sided = false, + uniform bool is_tangent_space_normal = true, + uniform bool is_unlit = false +) +[[ + anno::display_name("Omni UE4 Translucent"), + anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"), + anno::version( 1, 0, 0), + anno::author("NVIDIA CORPORATION"), + anno::key_words(string[]("omni", "UE4", "omniverse", "translucent")) +]] + = let { + color final_base_color = math::saturate(base_color); + float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f); + float final_roughness = math::saturate(roughness); + float final_specular = math::saturate(specular); + color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/ + float final_opacity = math::saturate(opacity); + float3 final_normal = math::normalize(normal); + + + // - compute final roughness by squaring the "roughness" parameter + float alpha = final_roughness * final_roughness; + // reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering + float grazing_refl = math::max((1.0 - final_roughness), 0.0); + + float3 the_normal = is_unlit ? state::normal() : + (is_tangent_space_normal ? + tangent_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + ) : world_space_normal( + normal: final_normal, + tangent_u: state::texture_tangent_u(0), + tangent_v: state::texture_tangent_v(0) + )); + + // for the dielectric component we layer the glossy component on top of the diffuse one, + // the glossy layer has no color tint + + bsdf dielectric_component = df::custom_curve_layer( + weight: final_specular, + normal_reflectivity: 0.08, + grazing_reflectivity: grazing_refl, + layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha), + base: df::diffuse_reflection_bsdf(tint: final_base_color)); + + // the metallic component doesn't have a diffuse component, it's only glossy + // base_color is applied to tint it + bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha); + + // final BSDF is a linear blend between dielectric and metallic component + bsdf dielectric_metal_mix = + df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: metallic_component, + weight: final_metallic), + df::bsdf_component( + component: dielectric_component, + weight: 1.0-final_metallic) + ) + ); + + bsdf frosted_bsdf = df::specular_bsdf( + tint: color(1), + mode: df::scatter_reflect_transmit + ); + + bsdf final_mix_bsdf = + is_unlit ? df::specular_bsdf( + tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity), + mode: df::scatter_reflect_transmit + ) + : df::normalized_mix( + components: + df::bsdf_component[]( + df::bsdf_component( + component: dielectric_metal_mix, + weight: get_translucent_opacity(final_opacity)), + df::bsdf_component( + component: frosted_bsdf, + weight: 1.0-get_translucent_opacity(final_opacity)) + ) + ); +} +in material( + thin_walled: two_sided, // Graphene? + ior: color(refraction), //refraction + surface: material_surface( + scattering: final_mix_bsdf, + emission: + material_emission ( + emission: df::diffuse_edf (), + intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity) + ) + ), + + geometry: material_geometry( + displacement: displacement, + normal: the_normal, + cutout_opacity: enable_opacity ? opacity_mask : 1.0 + ) +); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/WorldGridMaterial.mdl b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/WorldGridMaterial.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8040029cab1073713e0c535664dd57ed7f6b5522 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/materials/WorldGridMaterial.mdl @@ -0,0 +1,75 @@ +mdl 1.6; + +import ::math::*; +import ::state::*; +import ::tex::*; +import ::anno::*; +using OmniUe4Function import *; +using OmniUe4Base import *; + +export annotation sampler_color(); +export annotation sampler_normal(); +export annotation sampler_grayscale(); +export annotation sampler_alpha(); +export annotation sampler_masks(); +export annotation sampler_distancefield(); +export annotation dither_masked_off(); +export annotation world_space_normal(); + +export material WorldGridMaterial( + int MaxTexCoordIndex = 3 + [[ + anno::hidden() + ]]) + = + let { + float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0); + float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y); + + float2 Local0 = (CustomizedUV0_mdl / 2.0); + float2 Local1 = (Local0 / 0.05); + float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat)); + float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0)); + + float3 Normal_mdl = Local3; + + float2 Local4 = (CustomizedUV0_mdl * 20.0); + float4 Local5 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat); + float Local6 = math::lerp(0.4,1.0,Local5.x); + float Local7 = (1.0 - Local6); + float2 Local8 = (Local0 / 0.1); + float4 Local9 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat); + float Local10 = math::lerp(Local9.y,1.0,0.0); + float Local11 = math::lerp(Local6,Local7,Local10); + float4 Local12 = tex::lookup_float4(texture_2d("../textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat); + float Local13 = math::lerp(Local9.y,0.0,0.0); + float Local14 = (Local12.y + Local13); + float Local15 = math::lerp(Local14,0.5,0.5); + float Local16 = math::lerp(0.295,0.66,Local15); + float Local17 = (Local16 * 0.5); + float Local18 = (Local11 * Local17); + float Local19 = math::lerp(0.0,0.5,Local12.y); + float Local20 = math::lerp(0.7,1.0,Local9.y); + float Local21 = math::lerp(Local20,1.0,0.0); + float Local22 = (Local21 * 1.0); + float Local23 = (Local19 + Local22); + float Local24 = math::min(math::max(Local23,0.0),1.0); + + float3 EmissiveColor_mdl = float3(0.0,0.0,0.0); + float OpacityMask_mdl = 1.0; + float3 BaseColor_mdl = float3(Local18,Local18,Local18); + float Metallic_mdl = 0.0; + float Specular_mdl = 0.5; + float Roughness_mdl = Local24; + + } in + ::OmniUe4Base( + base_color: BaseColor_mdl, + metallic: Metallic_mdl, + roughness: Roughness_mdl, + specular: Specular_mdl, + normal: Normal_mdl, + opacity: OpacityMask_mdl, + emissive_color: EmissiveColor_mdl, + displacement: WorldPositionOffset_mdl, + two_sided: false); diff --git a/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/model_d63f525c78a190e4f0c499fc8604cdbd_0.usda b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/model_d63f525c78a190e4f0c499fc8604cdbd_0.usda new file mode 100644 index 0000000000000000000000000000000000000000..6be085421ec758cc1a05fe314c26aebcfa0204e7 --- /dev/null +++ b/assets/scene_usds/ebench/simple_pnp/task9/SubUSDs/model_d63f525c78a190e4f0c499fc8604cdbd_0.usda @@ -0,0 +1,78 @@ +#usda 1.0 +( + customLayerData = { + dictionary omni_layer = { + dictionary locked = { + } + dictionary muteness = { + } + } + dictionary renderSettings = { + float3 "rtx:debugView:pixelDebug:textColor" = (0, 1e18, 0) + float3 "rtx:fog:fogColor" = (0.75, 0.75, 0.75) + float3 "rtx:index:backgroundColor" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMax" = (0, 0, 0) + float3 "rtx:index:regionOfInterestMin" = (0, 0, 0) + float3 "rtx:post:backgroundZeroAlpha:backgroundDefaultColor" = (0, 0, 0) + float3 "rtx:post:colorcorr:contrast" = (1, 1, 1) + float3 "rtx:post:colorcorr:gain" = (1, 1, 1) + float3 "rtx:post:colorcorr:gamma" = (1, 1, 1) + float3 "rtx:post:colorcorr:offset" = (0, 0, 0) + float3 "rtx:post:colorcorr:saturation" = (1, 1, 1) + float3 "rtx:post:colorgrad:blackpoint" = (0, 0, 0) + float3 "rtx:post:colorgrad:contrast" = (1, 1, 1) + float3 "rtx:post:colorgrad:gain" = (1, 1, 1) + float3 "rtx:post:colorgrad:gamma" = (1, 1, 1) + float3 "rtx:post:colorgrad:lift" = (0, 0, 0) + float3 "rtx:post:colorgrad:multiply" = (1, 1, 1) + float3 "rtx:post:colorgrad:offset" = (0, 0, 0) + float3 "rtx:post:colorgrad:whitepoint" = (1, 1, 1) + float3 "rtx:post:lensDistortion:lensFocalLengthArray" = (10, 30, 50) + float3 "rtx:post:lensFlares:anisoFlareFalloffX" = (450, 475, 500) + float3 "rtx:post:lensFlares:anisoFlareFalloffY" = (10, 10, 10) + float3 "rtx:post:lensFlares:cutoffPoint" = (2, 2, 2) + float3 "rtx:post:lensFlares:haloFlareFalloff" = (10, 10, 10) + float3 "rtx:post:lensFlares:haloFlareRadius" = (75, 75, 75) + float3 "rtx:post:lensFlares:isotropicFlareFalloff" = (50, 50, 50) + float3 "rtx:post:tonemap:whitepoint" = (1, 1, 1) + float3 "rtx:raytracing:indexdirect:svoBrickSize" = (32, 32, 32) + float3 "rtx:raytracing:inscattering:singleScatteringAlbedo" = (0.9, 0.9, 0.9) + float3 "rtx:raytracing:inscattering:transmittanceColor" = (0.5, 0.5, 0.5) + float3 "rtx:sceneDb:ambientLightColor" = (0.1, 0.1, 0.1) + double "rtx:translucency:worldEps" = 0.005 + } + } + defaultPrim = "World" + endTimeCode = 1000000 + metersPerUnit = 1.0 + startTimeCode = 0 + timeCodesPerSecond = 60 + upAxis = "Z" +) + +over "Render" ( + hide_in_stage_window = true +) +{ +} + +def Xform "World" +{ + def "_model_d63f525c78a190e4f0c499fc8604cdbd_0" ( + prepend payload = @./model_d63f525c78a190e4f0c499fc8604cdbd_0.usd@ + ) + { + float3 xformOp:rotateXYZ = (0, 0, 0) + float3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] + } +} + +def Xform "Environment" +{ + double3 xformOp:rotateXYZ = (0, 0, 0) + double3 xformOp:scale = (1, 1, 1) + double3 xformOp:translate = (0, 0, 0) + uniform token[] xformOpOrder = ["xformOp:translate", "xformOp:rotateXYZ", "xformOp:scale"] +}