diff --git a/Readme.md b/Readme.md index c688faa..00f4cd6 100644 --- a/Readme.md +++ b/Readme.md @@ -281,6 +281,10 @@ I consider this plugin to be in *beta* stage, use it at your own risk :) * do not export standard materials (lambert, phong, etc), only GLTF PBR materials. * by default standard materials are converted * but just the color and transparency is copied for now. + + * `-excludeUnusedTexcoord (-eut)` *(optional)* + * exclude texture coordinates when the mesh primitive doesn't have textures? + * by default texture coordinates are always exported * `-defaultMaterial (-dm)` *(optional)* * always generates a glTF PBR material, even if no material is assigned to a mesh in Maya diff --git a/maya/scenes/TranparentCube1.ma b/maya/scenes/TranparentCube1.ma new file mode 100644 index 0000000..217f852 --- /dev/null +++ b/maya/scenes/TranparentCube1.ma @@ -0,0 +1,1170 @@ +//Maya ASCII 2018ff08 scene +//Name: TranparentCube1.ma +//Last modified: Fri, Jun 15, 2018 09:32:58 PM +//Codeset: 1252 +requires maya "2018ff08"; +requires -nodeType "GLSLShader" "glslShader" "1.0"; +currentUnit -l centimeter -a degree -t film; +fileInfo "application" "maya"; +fileInfo "product" "Maya 2018"; +fileInfo "version" "2018"; +fileInfo "cutIdentifier" "201804211841-f3d65dda2a"; +fileInfo "osv" "Microsoft Windows 8 Business Edition, 64-bit (Build 9200)\n"; +createNode transform -s -n "persp"; + rename -uid "91A49AC7-4AA1-EC2A-D89C-378DF9FB5D02"; + setAttr ".v" no; + setAttr ".t" -type "double3" 3.1065951567652363 0.90016991458763962 2.0796841923561997 ; + setAttr ".r" -type "double3" -13.538352729602289 56.200000000000863 1.4293455641400095e-15 ; +createNode camera -s -n "perspShape" -p "persp"; + rename -uid "FFAE7AF8-4E5E-CCC1-9417-A38FE974CBA6"; + setAttr -k off ".v" no; + setAttr ".fl" 34.999999999999993; + setAttr ".coi" 3.8452991669181271; + setAttr ".imn" -type "string" "persp"; + setAttr ".den" -type "string" "persp_depth"; + setAttr ".man" -type "string" "persp_mask"; + setAttr ".hc" -type "string" "viewSet -p %camera"; +createNode transform -s -n "top"; + rename -uid "82A7F235-45AE-C1F0-235D-6A94AD440FAD"; + setAttr ".v" no; + setAttr ".t" -type "double3" 0 1000.1 0 ; + setAttr ".r" -type "double3" -89.999999999999986 0 0 ; +createNode camera -s -n "topShape" -p "top"; + rename -uid "3B63DA8C-46E8-35C8-64F7-C1A20886B5C9"; + setAttr -k off ".v" no; + setAttr ".rnd" no; + setAttr ".coi" 1000.1; + setAttr ".ow" 30; + setAttr ".imn" -type "string" "top"; + setAttr ".den" -type "string" "top_depth"; + setAttr ".man" -type "string" "top_mask"; + setAttr ".hc" -type "string" "viewSet -t %camera"; + setAttr ".o" yes; +createNode transform -s -n "front"; + rename -uid "ED75D7BB-4256-C404-AF6A-E4AAF8DDC015"; + setAttr ".v" no; + setAttr ".t" -type "double3" 0 0 1000.1 ; +createNode camera -s -n "frontShape" -p "front"; + rename -uid "BC04DACA-42B2-8198-3909-2185B11BD67A"; + setAttr -k off ".v" no; + setAttr ".rnd" no; + setAttr ".coi" 1000.1; + setAttr ".ow" 30; + setAttr ".imn" -type "string" "front"; + setAttr ".den" -type "string" "front_depth"; + setAttr ".man" -type "string" "front_mask"; + setAttr ".hc" -type "string" "viewSet -f %camera"; + setAttr ".o" yes; +createNode transform -s -n "side"; + rename -uid "29BA0F54-42FD-2313-D9DF-F88E326534AF"; + setAttr ".v" no; + setAttr ".t" -type "double3" 1000.1 0 0 ; + setAttr ".r" -type "double3" 0 89.999999999999986 0 ; +createNode camera -s -n "sideShape" -p "side"; + rename -uid "313F234A-40FB-4201-F9AE-3B97FFFA4072"; + setAttr -k off ".v" no; + setAttr ".rnd" no; + setAttr ".coi" 1000.1; + setAttr ".ow" 30; + setAttr ".imn" -type "string" "side"; + setAttr ".den" -type "string" "side_depth"; + setAttr ".man" -type "string" "side_mask"; + setAttr ".hc" -type "string" "viewSet -s %camera"; + setAttr ".o" yes; +createNode transform -n "pCube1"; + rename -uid "7A4E48BF-42BC-9CA0-AB5D-4FBD89134EA1"; +createNode mesh -n "pCubeShape1" -p "pCube1"; + rename -uid "5B90D714-4467-66EB-D33D-C688DA24FA78"; + setAttr -k off ".v"; + setAttr ".vir" yes; + setAttr ".vif" yes; + setAttr ".uvst[0].uvsn" -type "string" "map1"; + setAttr ".cuvs" -type "string" "map1"; + setAttr ".dcc" -type "string" "Ambient+Diffuse"; + setAttr ".covm[0]" 0 1 1; + setAttr ".cdvm[0]" 0 1 1; +createNode transform -n "pCube2"; + rename -uid "AE4F16BC-4D8F-E73B-75C2-849D5264A14C"; +createNode mesh -n "pCubeShape2" -p "pCube2"; + rename -uid "0C2D934F-4D2D-AB35-B4D4-4C9E0E7249D2"; + setAttr -k off ".v"; + setAttr ".vir" yes; + setAttr ".vif" yes; + setAttr ".uvst[0].uvsn" -type "string" "map1"; + setAttr ".cuvs" -type "string" "map1"; + setAttr ".dcc" -type "string" "Ambient+Diffuse"; + setAttr ".covm[0]" 0 1 1; + setAttr ".cdvm[0]" 0 1 1; +createNode lightLinker -s -n "lightLinker1"; + rename -uid "22E9655C-4BB5-C193-DC9F-BFAD5D285553"; + setAttr -s 4 ".lnk"; + setAttr -s 4 ".slnk"; +createNode shapeEditorManager -n "shapeEditorManager"; + rename -uid "83F7DE84-4DD7-1492-7B86-B39B4D4967BF"; +createNode poseInterpolatorManager -n "poseInterpolatorManager"; + rename -uid "6FBA6852-4949-1210-75F9-B08146D84295"; +createNode displayLayerManager -n "layerManager"; + rename -uid "08F71C60-4D5D-1224-A59B-9B835540164A"; +createNode displayLayer -n "defaultLayer"; + rename -uid "CE8F092A-4E35-EF37-9CB7-CBBE989014C3"; +createNode renderLayerManager -n "renderLayerManager"; + rename -uid "A14C60AD-4877-01B8-BBFD-C784897FBC21"; +createNode renderLayer -n "defaultRenderLayer"; + rename -uid "0048BD2C-4708-B8B1-1D12-DF9B9F477883"; + setAttr ".g" yes; +createNode polyCube -n "polyCube1"; + rename -uid "40544E7B-471C-02DE-37F6-23845D4EAABA"; + setAttr ".cuv" 4; +createNode script -n "maya2glTF_scriptNode"; + rename -uid "3577C3C5-4458-7E2F-E308-79AF2BB2BFE2"; + setAttr ".st" 2; +createNode GLSLShader -n "GLSLShader1"; + rename -uid "5458EB74-4975-BC2D-D711-2AABEF7A1659"; + addAttr -is true -ci true -h true -sn "u_LightColor_Name" -ln "u_LightColor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightColor_Type" -ln "u_LightColor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_LightColor" -ln "u_LightColor" -nn "Light Color" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_LightColorR" -ln "u_LightColorR" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -sn "u_LightColorG" -ln "u_LightColorG" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -sn "u_LightColorB" -ln "u_LightColorB" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -h true -sn "u_LightIntensity_Name" -ln "u_LightIntensity_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightIntensity_Type" -ln "u_LightIntensity_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightIntensity" -ln "u_LightIntensity" -nn "Light Intensity" + -ct "HW_shader_parameter" -dv 1 -min 0 -max 10 -smn 0 -smx 10 -at "float"; + addAttr -is true -ci true -h true -sn "u_LightRotation_Name" -ln "u_LightRotation_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightRotation_Type" -ln "u_LightRotation_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightRotation" -ln "u_LightRotation" -nn "Light rotation (deg)" + -ct "HW_shader_parameter" -dv 75 -min 0 -max 360 -at "float"; + addAttr -is true -ci true -h true -sn "u_LightPitch_Name" -ln "u_LightPitch_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightPitch_Type" -ln "u_LightPitch_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightPitch" -ln "u_LightPitch" -nn "Light pitch (deg)" + -ct "HW_shader_parameter" -dv 40 -min -90 -max 90 -at "float"; + addAttr -is true -ci true -h true -sn "u_BaseColorTexture_Name" -ln "u_BaseColorTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_BaseColorTexture_Type" -ln "u_BaseColorTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_BaseColorTexture" -ln "u_BaseColorTexture" + -nn "Base color map (sRGB)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_BaseColorTextureR" -ln "u_BaseColorTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -sn "u_BaseColorTextureG" -ln "u_BaseColorTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -sn "u_BaseColorTextureB" -ln "u_BaseColorTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -h true -sn "u_BaseColorFactor_Name" -ln "u_BaseColorFactor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_BaseColorFactor_Type" -ln "u_BaseColorFactor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_BaseColorFactor" -ln "u_BaseColorFactor" -nn "Base color factor" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -uac -sn "u_BaseColorFactorRGB" -ln "u_BaseColorFactorRGB" + -ct "HW_shader_parameter" -at "float3" -p "u_BaseColorFactor" -nc 3; + addAttr -is true -ci true -sn "u_BaseColorFactorR" -ln "u_BaseColorFactorR" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorG" -ln "u_BaseColorFactorG" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorB" -ln "u_BaseColorFactorB" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorA" -ln "u_BaseColorFactorA" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -smn 0 -smx 1 -at "float" -p "u_BaseColorFactor"; + addAttr -is true -ci true -h true -sn "u_MetallicTexture_Name" -ln "u_MetallicTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_MetallicTexture_Type" -ln "u_MetallicTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_MetallicTexture" -ln "u_MetallicTexture" -nn "Metallic map (B,LIN)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_MetallicTextureR" -ln "u_MetallicTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -sn "u_MetallicTextureG" -ln "u_MetallicTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -sn "u_MetallicTextureB" -ln "u_MetallicTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -h true -sn "u_MetallicStrength_Name" -ln "u_MetallicStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_MetallicStrength_Type" -ln "u_MetallicStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_MetallicStrength" -ln "u_MetallicStrength" -nn "Metallic strength" + -ct "HW_shader_parameter" -dv 0.5 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_RoughnessTexture_Name" -ln "u_RoughnessTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_RoughnessTexture_Type" -ln "u_RoughnessTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_RoughnessTexture" -ln "u_RoughnessTexture" + -nn "Roughness map (G,LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_RoughnessTextureR" -ln "u_RoughnessTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -sn "u_RoughnessTextureG" -ln "u_RoughnessTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -sn "u_RoughnessTextureB" -ln "u_RoughnessTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -h true -sn "u_RoughnessStrength_Name" -ln "u_RoughnessStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_RoughnessStrength_Type" -ln "u_RoughnessStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_RoughnessStrength" -ln "u_RoughnessStrength" -nn "Roughness strength" + -ct "HW_shader_parameter" -dv 0.5 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_OcclusionTexture_Name" -ln "u_OcclusionTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_OcclusionTexture_Type" -ln "u_OcclusionTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_OcclusionTexture" -ln "u_OcclusionTexture" + -nn "Occlusion map (R,LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_OcclusionTextureR" -ln "u_OcclusionTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -sn "u_OcclusionTextureG" -ln "u_OcclusionTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -sn "u_OcclusionTextureB" -ln "u_OcclusionTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -h true -sn "u_OcclusionStrength_Name" -ln "u_OcclusionStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_OcclusionStrength_Type" -ln "u_OcclusionStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_OcclusionStrength" -ln "u_OcclusionStrength" -nn "Occlusion strength" + -ct "HW_shader_parameter" -dv 1 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_NormalTexture_Name" -ln "u_NormalTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_NormalTexture_Type" -ln "u_NormalTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_NormalTexture" -ln "u_NormalTexture" -nn "Normal map (LIN)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_NormalTextureR" -ln "u_NormalTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -sn "u_NormalTextureG" -ln "u_NormalTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -sn "u_NormalTextureB" -ln "u_NormalTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -h true -sn "u_NormalScale_Name" -ln "u_NormalScale_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_NormalScale_Type" -ln "u_NormalScale_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_NormalScale" -ln "u_NormalScale" -nn "Normal scale" + -ct "HW_shader_parameter" -dv 1 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_EmissiveTexture_Name" -ln "u_EmissiveTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_EmissiveTexture_Type" -ln "u_EmissiveTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_EmissiveTexture" -ln "u_EmissiveTexture" -nn "Emissive map (sRGB)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_EmissiveTextureR" -ln "u_EmissiveTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -sn "u_EmissiveTextureG" -ln "u_EmissiveTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -sn "u_EmissiveTextureB" -ln "u_EmissiveTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -h true -sn "u_EmissiveColor_Name" -ln "u_EmissiveColor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_EmissiveColor_Type" -ln "u_EmissiveColor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_EmissiveColor" -ln "u_EmissiveColor" -nn "Emissive color factor" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_EmissiveColorR" -ln "u_EmissiveColorR" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -sn "u_EmissiveColorG" -ln "u_EmissiveColorG" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -sn "u_EmissiveColorB" -ln "u_EmissiveColorB" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -h true -sn "u_DiffuseEnvTexture_Name" -ln "u_DiffuseEnvTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_DiffuseEnvTexture_Type" -ln "u_DiffuseEnvTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_DiffuseEnvTexture" -ln "u_DiffuseEnvTexture" + -nn "Diffuse env map (LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureR" -ln "u_DiffuseEnvTextureR" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureG" -ln "u_DiffuseEnvTextureG" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureB" -ln "u_DiffuseEnvTextureB" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -h true -sn "u_SpecularEnvTexture_Name" -ln "u_SpecularEnvTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_SpecularEnvTexture_Type" -ln "u_SpecularEnvTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_SpecularEnvTexture" -ln "u_SpecularEnvTexture" + -nn "Specular env map (LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_SpecularEnvTextureR" -ln "u_SpecularEnvTextureR" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -sn "u_SpecularEnvTextureG" -ln "u_SpecularEnvTextureG" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -sn "u_SpecularEnvTextureB" -ln "u_SpecularEnvTextureB" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -h true -sn "u_brdfTexture_Name" -ln "u_brdfTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_brdfTexture_Type" -ln "u_brdfTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_brdfTexture" -ln "u_brdfTexture" -nn "BRDF LUT (sRGB)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_brdfTextureR" -ln "u_brdfTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -sn "u_brdfTextureG" -ln "u_brdfTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -sn "u_brdfTextureB" -ln "u_brdfTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -h true -sn "u_UseMeshTangents_Name" -ln "u_UseMeshTangents_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_UseMeshTangents_Type" -ln "u_UseMeshTangents_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_UseMeshTangents" -ln "u_UseMeshTangents" -nn "Use mesh tangents?" + -ct "HW_shader_parameter" -min 0 -max 1 -at "bool"; + addAttr -is true -ci true -h true -sn "u_ScaleDiffBaseMR_Name" -ln "u_ScaleDiffBaseMR_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleDiffBaseMR_Type" -ln "u_ScaleDiffBaseMR_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMR" -ln "u_ScaleDiffBaseMR" -nn "Scale Diff Base MR" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRXYZ" -ln "u_ScaleDiffBaseMRXYZ" + -ct "HW_shader_parameter" -at "float3" -p "u_ScaleDiffBaseMR" -nc 3; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRX" -ln "u_ScaleDiffBaseMRX" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRY" -ln "u_ScaleDiffBaseMRY" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRZ" -ln "u_ScaleDiffBaseMRZ" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRW" -ln "u_ScaleDiffBaseMRW" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMR"; + addAttr -is true -ci true -h true -sn "u_ScaleFGDSpec_Name" -ln "u_ScaleFGDSpec_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleFGDSpec_Type" -ln "u_ScaleFGDSpec_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleFGDSpec" -ln "u_ScaleFGDSpec" -nn "Scale FGD Spec" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleFGDSpecXYZ" -ln "u_ScaleFGDSpecXYZ" -ct "HW_shader_parameter" + -at "float3" -p "u_ScaleFGDSpec" -nc 3; + addAttr -is true -ci true -sn "u_ScaleFGDSpecX" -ln "u_ScaleFGDSpecX" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecY" -ln "u_ScaleFGDSpecY" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecZ" -ln "u_ScaleFGDSpecZ" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecW" -ln "u_ScaleFGDSpecW" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpec"; + addAttr -is true -ci true -h true -sn "u_ScaleIBL_Occl_Name" -ln "u_ScaleIBL_Occl_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleIBL_Occl_Type" -ln "u_ScaleIBL_Occl_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleIBL_Occl" -ln "u_ScaleIBL_Occl" -nn "Scale IBL AO(w)" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclXYZ" -ln "u_ScaleIBL_OcclXYZ" -ct "HW_shader_parameter" + -at "float3" -p "u_ScaleIBL_Occl" -nc 3; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclX" -ln "u_ScaleIBL_OcclX" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclY" -ln "u_ScaleIBL_OcclY" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclZ" -ln "u_ScaleIBL_OcclZ" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclW" -ln "u_ScaleIBL_OcclW" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_Occl"; + addAttr -ci true -sn "Position" -ln "Position" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Position_Name" -ln "Position_Name" -ct "HW_shader_parameter" + -dt "string" -p "Position"; + addAttr -is true -ci true -h true -sn "Position_Source" -ln "Position_Source" -ct "HW_shader_parameter" + -dt "string" -p "Position"; + addAttr -is true -ci true -sn "Position_DefaultTexture" -ln "Position_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Position"; + addAttr -ci true -sn "Normal" -ln "Normal" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Normal_Name" -ln "Normal_Name" -ct "HW_shader_parameter" + -dt "string" -p "Normal"; + addAttr -is true -ci true -h true -sn "Normal_Source" -ln "Normal_Source" -ct "HW_shader_parameter" + -dt "string" -p "Normal"; + addAttr -is true -ci true -sn "Normal_DefaultTexture" -ln "Normal_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Normal"; + addAttr -ci true -sn "Tangent" -ln "Tangent" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Tangent_Name" -ln "Tangent_Name" -ct "HW_shader_parameter" + -dt "string" -p "Tangent"; + addAttr -is true -ci true -h true -sn "Tangent_Source" -ln "Tangent_Source" -ct "HW_shader_parameter" + -dt "string" -p "Tangent"; + addAttr -is true -ci true -sn "Tangent_DefaultTexture" -ln "Tangent_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Tangent"; + addAttr -ci true -sn "Binormal" -ln "Binormal" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Binormal_Name" -ln "Binormal_Name" -ct "HW_shader_parameter" + -dt "string" -p "Binormal"; + addAttr -is true -ci true -h true -sn "Binormal_Source" -ln "Binormal_Source" -ct "HW_shader_parameter" + -dt "string" -p "Binormal"; + addAttr -is true -ci true -sn "Binormal_DefaultTexture" -ln "Binormal_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Binormal"; + addAttr -ci true -sn "TexCoord0" -ln "TexCoord0" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "TexCoord0_Name" -ln "TexCoord0_Name" -ct "HW_shader_parameter" + -dt "string" -p "TexCoord0"; + addAttr -is true -ci true -h true -sn "TexCoord0_Source" -ln "TexCoord0_Source" + -ct "HW_shader_parameter" -dt "string" -p "TexCoord0"; + addAttr -is true -ci true -sn "TexCoord0_DefaultTexture" -ln "TexCoord0_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "TexCoord0"; + addAttr -s false -is true -ci true -k true -sn "te" -ln "techniqueEnum" -nn "Technique" + -min 0 -max 1 -en "Solid:Transparent" -at "enum"; + setAttr ".vpar" -type "stringArray" 5 "Position" "Normal" "Tangent" "Binormal" "TexCoord0" ; + setAttr ".upar" -type "stringArray" 23 "u_LightColor" "u_LightIntensity" "u_LightRotation" "u_LightPitch" "u_BaseColorTexture" "u_BaseColorFactor" "u_MetallicTexture" "u_MetallicStrength" "u_RoughnessTexture" "u_RoughnessStrength" "u_OcclusionTexture" "u_OcclusionStrength" "u_NormalTexture" "u_NormalScale" "u_EmissiveTexture" "u_EmissiveColor" "u_DiffuseEnvTexture" "u_SpecularEnvTexture" "u_brdfTexture" "u_UseMeshTangents" "u_ScaleDiffBaseMR" "u_ScaleFGDSpec" "u_ScaleIBL_Occl" ; + setAttr ".s" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders/glTF_PBR.ogsfx"; + setAttr ".t" -type "string" "Solid"; + setAttr ".u_LightColor_Name" -type "string" "u_LightColor"; + setAttr ".u_LightColor_Type" -type "string" "color3x1"; + setAttr ".u_LightColor" -type "float3" 1 1 1 ; + setAttr ".u_LightIntensity_Name" -type "string" "u_LightIntensity"; + setAttr ".u_LightIntensity_Type" -type "string" "float"; + setAttr ".u_LightIntensity" 1; + setAttr ".u_LightRotation_Name" -type "string" "u_LightRotation"; + setAttr ".u_LightRotation_Type" -type "string" "float"; + setAttr ".u_LightRotation" 75; + setAttr ".u_LightPitch_Name" -type "string" "u_LightPitch"; + setAttr ".u_LightPitch_Type" -type "string" "float"; + setAttr ".u_LightPitch" 40; + setAttr ".u_BaseColorTexture_Name" -type "string" "u_BaseColorTexture"; + setAttr ".u_BaseColorTexture_Type" -type "string" "texture"; + setAttr ".u_BaseColorTexture" -type "float3" 0 0 0 ; + setAttr ".u_BaseColorFactor_Name" -type "string" "u_BaseColorFactor"; + setAttr ".u_BaseColorFactor_Type" -type "string" "color4x1"; + setAttr ".u_BaseColorFactorRGB" -type "float3" 1 1 1 ; + setAttr ".u_BaseColorFactorA" 1; + setAttr ".u_MetallicTexture_Name" -type "string" "u_MetallicTexture"; + setAttr ".u_MetallicTexture_Type" -type "string" "texture"; + setAttr ".u_MetallicTexture" -type "float3" 0 0 0 ; + setAttr ".u_MetallicStrength_Name" -type "string" "u_MetallicStrength"; + setAttr ".u_MetallicStrength_Type" -type "string" "float"; + setAttr ".u_MetallicStrength" 0; + setAttr ".u_RoughnessTexture_Name" -type "string" "u_RoughnessTexture"; + setAttr ".u_RoughnessTexture_Type" -type "string" "texture"; + setAttr ".u_RoughnessTexture" -type "float3" 0 0 0 ; + setAttr ".u_RoughnessStrength_Name" -type "string" "u_RoughnessStrength"; + setAttr ".u_RoughnessStrength_Type" -type "string" "float"; + setAttr ".u_RoughnessStrength" 1; + setAttr ".u_OcclusionTexture_Name" -type "string" "u_OcclusionTexture"; + setAttr ".u_OcclusionTexture_Type" -type "string" "texture"; + setAttr ".u_OcclusionTexture" -type "float3" 0 0 0 ; + setAttr ".u_OcclusionStrength_Name" -type "string" "u_OcclusionStrength"; + setAttr ".u_OcclusionStrength_Type" -type "string" "float"; + setAttr ".u_OcclusionStrength" 1; + setAttr ".u_NormalTexture_Name" -type "string" "u_NormalTexture"; + setAttr ".u_NormalTexture_Type" -type "string" "texture"; + setAttr ".u_NormalTexture" -type "float3" 0 0 0 ; + setAttr ".u_NormalScale_Name" -type "string" "u_NormalScale"; + setAttr ".u_NormalScale_Type" -type "string" "float"; + setAttr ".u_NormalScale" 1; + setAttr ".u_EmissiveTexture_Name" -type "string" "u_EmissiveTexture"; + setAttr ".u_EmissiveTexture_Type" -type "string" "texture"; + setAttr ".u_EmissiveTexture" -type "float3" 0 0 0 ; + setAttr ".u_EmissiveColor_Name" -type "string" "u_EmissiveColor"; + setAttr ".u_EmissiveColor_Type" -type "string" "color3x1"; + setAttr ".u_EmissiveColor" -type "float3" 0 0 0 ; + setAttr ".u_DiffuseEnvTexture_Name" -type "string" "u_DiffuseEnvTexture"; + setAttr ".u_DiffuseEnvTexture_Type" -type "string" "texture"; + setAttr ".u_DiffuseEnvTexture" -type "float3" 0 0 0 ; + setAttr ".u_SpecularEnvTexture_Name" -type "string" "u_SpecularEnvTexture"; + setAttr ".u_SpecularEnvTexture_Type" -type "string" "texture"; + setAttr ".u_SpecularEnvTexture" -type "float3" 0 0 0 ; + setAttr ".u_brdfTexture_Name" -type "string" "u_brdfTexture"; + setAttr ".u_brdfTexture_Type" -type "string" "texture"; + setAttr ".u_brdfTexture" -type "float3" 0 0 0 ; + setAttr ".u_UseMeshTangents_Name" -type "string" "u_UseMeshTangents"; + setAttr ".u_UseMeshTangents_Type" -type "string" "bool"; + setAttr ".u_UseMeshTangents" no; + setAttr ".u_ScaleDiffBaseMR_Name" -type "string" "u_ScaleDiffBaseMR"; + setAttr ".u_ScaleDiffBaseMR_Type" -type "string" "float4x1"; + setAttr ".u_ScaleDiffBaseMRXYZ" -type "float3" 0 0 0 ; + setAttr ".u_ScaleDiffBaseMRW" 0; + setAttr ".u_ScaleFGDSpec_Name" -type "string" "u_ScaleFGDSpec"; + setAttr ".u_ScaleFGDSpec_Type" -type "string" "float4x1"; + setAttr ".u_ScaleFGDSpecXYZ" -type "float3" 0 0 0 ; + setAttr ".u_ScaleFGDSpecW" 0; + setAttr ".u_ScaleIBL_Occl_Name" -type "string" "u_ScaleIBL_Occl"; + setAttr ".u_ScaleIBL_Occl_Type" -type "string" "float4x1"; + setAttr ".u_ScaleIBL_OcclXYZ" -type "float3" 1 1 0 ; + setAttr ".u_ScaleIBL_OcclW" 1; + setAttr ".Position_Name" -type "string" "Position"; + setAttr ".Position_Source" -type "string" "position"; + setAttr ".Normal_Name" -type "string" "Normal"; + setAttr ".Normal_Source" -type "string" "normal"; + setAttr ".Tangent_Name" -type "string" "Tangent"; + setAttr ".Tangent_Source" -type "string" "tangent:map1"; + setAttr ".Binormal_Name" -type "string" "Binormal"; + setAttr ".Binormal_Source" -type "string" "binormal:map1"; + setAttr ".TexCoord0_Name" -type "string" "TexCoord0"; + setAttr ".TexCoord0_Source" -type "string" "uv:map1"; +createNode file -n "file1"; + rename -uid "8642A594-44A3-26B6-99C6-38AD25E88B45"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/damaged_helmet_diffuse_env.dds"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture1"; + rename -uid "2E77AC7B-4F8F-9589-AA0D-569ABA1E21AD"; +createNode file -n "file2"; + rename -uid "3A847E89-4F48-D1D8-6B0B-D689B65BD8AF"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/damaged_helmet_specular_env.dds"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture2"; + rename -uid "A026764A-49F1-35F3-675F-358671B96DD5"; +createNode file -n "file3"; + rename -uid "CA29F052-461F-BA5D-11B8-3A90CB8EE7C6"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/brdfLUT.png"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture3"; + rename -uid "BF99A8AE-447A-1C2C-4D5C-079058789DC1"; +createNode shadingEngine -n "GLSLShader1SG"; + rename -uid "ED48A847-4391-F573-DBDD-A7AB525A6F82"; + setAttr ".ihi" 0; + setAttr ".ro" yes; +createNode materialInfo -n "materialInfo1"; + rename -uid "9BBBB72D-4CA9-8219-42D3-D2A985C895A1"; +createNode polyCube -n "polyCube2"; + rename -uid "8F36B867-4E16-72C4-AC10-CC8C7F5ABFC9"; + setAttr ".w" 1.1; + setAttr ".h" 1.1; + setAttr ".d" 1.1; + setAttr ".cuv" 4; +createNode GLSLShader -n "GLSLShader2"; + rename -uid "40EAEDAB-4DE5-2A68-8ADE-9081BECD408F"; + addAttr -is true -ci true -h true -sn "u_LightColor_Name" -ln "u_LightColor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightColor_Type" -ln "u_LightColor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_LightColor" -ln "u_LightColor" -nn "Light Color" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_LightColorR" -ln "u_LightColorR" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -sn "u_LightColorG" -ln "u_LightColorG" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -sn "u_LightColorB" -ln "u_LightColorB" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_LightColor"; + addAttr -is true -ci true -h true -sn "u_LightIntensity_Name" -ln "u_LightIntensity_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightIntensity_Type" -ln "u_LightIntensity_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightIntensity" -ln "u_LightIntensity" -nn "Light Intensity" + -ct "HW_shader_parameter" -dv 1 -min 0 -max 10 -smn 0 -smx 10 -at "float"; + addAttr -is true -ci true -h true -sn "u_LightRotation_Name" -ln "u_LightRotation_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightRotation_Type" -ln "u_LightRotation_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightRotation" -ln "u_LightRotation" -nn "Light rotation (deg)" + -ct "HW_shader_parameter" -dv 75 -min 0 -max 360 -at "float"; + addAttr -is true -ci true -h true -sn "u_LightPitch_Name" -ln "u_LightPitch_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_LightPitch_Type" -ln "u_LightPitch_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_LightPitch" -ln "u_LightPitch" -nn "Light pitch (deg)" + -ct "HW_shader_parameter" -dv 40 -min -90 -max 90 -at "float"; + addAttr -is true -ci true -h true -sn "u_BaseColorTexture_Name" -ln "u_BaseColorTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_BaseColorTexture_Type" -ln "u_BaseColorTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_BaseColorTexture" -ln "u_BaseColorTexture" + -nn "Base color map (sRGB)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_BaseColorTextureR" -ln "u_BaseColorTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -sn "u_BaseColorTextureG" -ln "u_BaseColorTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -sn "u_BaseColorTextureB" -ln "u_BaseColorTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_BaseColorTexture"; + addAttr -is true -ci true -h true -sn "u_BaseColorFactor_Name" -ln "u_BaseColorFactor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_BaseColorFactor_Type" -ln "u_BaseColorFactor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_BaseColorFactor" -ln "u_BaseColorFactor" -nn "Base color factor" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -uac -sn "u_BaseColorFactorRGB" -ln "u_BaseColorFactorRGB" + -ct "HW_shader_parameter" -at "float3" -p "u_BaseColorFactor" -nc 3; + addAttr -is true -ci true -sn "u_BaseColorFactorR" -ln "u_BaseColorFactorR" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorG" -ln "u_BaseColorFactorG" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorB" -ln "u_BaseColorFactorB" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_BaseColorFactorRGB"; + addAttr -is true -ci true -sn "u_BaseColorFactorA" -ln "u_BaseColorFactorA" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -smn 0 -smx 1 -at "float" -p "u_BaseColorFactor"; + addAttr -is true -ci true -h true -sn "u_MetallicTexture_Name" -ln "u_MetallicTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_MetallicTexture_Type" -ln "u_MetallicTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_MetallicTexture" -ln "u_MetallicTexture" -nn "Metallic map (B,LIN)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_MetallicTextureR" -ln "u_MetallicTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -sn "u_MetallicTextureG" -ln "u_MetallicTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -sn "u_MetallicTextureB" -ln "u_MetallicTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_MetallicTexture"; + addAttr -is true -ci true -h true -sn "u_MetallicStrength_Name" -ln "u_MetallicStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_MetallicStrength_Type" -ln "u_MetallicStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_MetallicStrength" -ln "u_MetallicStrength" -nn "Metallic strength" + -ct "HW_shader_parameter" -dv 0.5 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_RoughnessTexture_Name" -ln "u_RoughnessTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_RoughnessTexture_Type" -ln "u_RoughnessTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_RoughnessTexture" -ln "u_RoughnessTexture" + -nn "Roughness map (G,LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_RoughnessTextureR" -ln "u_RoughnessTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -sn "u_RoughnessTextureG" -ln "u_RoughnessTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -sn "u_RoughnessTextureB" -ln "u_RoughnessTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_RoughnessTexture"; + addAttr -is true -ci true -h true -sn "u_RoughnessStrength_Name" -ln "u_RoughnessStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_RoughnessStrength_Type" -ln "u_RoughnessStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_RoughnessStrength" -ln "u_RoughnessStrength" -nn "Roughness strength" + -ct "HW_shader_parameter" -dv 0.5 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_OcclusionTexture_Name" -ln "u_OcclusionTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_OcclusionTexture_Type" -ln "u_OcclusionTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_OcclusionTexture" -ln "u_OcclusionTexture" + -nn "Occlusion map (R,LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_OcclusionTextureR" -ln "u_OcclusionTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -sn "u_OcclusionTextureG" -ln "u_OcclusionTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -sn "u_OcclusionTextureB" -ln "u_OcclusionTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_OcclusionTexture"; + addAttr -is true -ci true -h true -sn "u_OcclusionStrength_Name" -ln "u_OcclusionStrength_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_OcclusionStrength_Type" -ln "u_OcclusionStrength_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_OcclusionStrength" -ln "u_OcclusionStrength" -nn "Occlusion strength" + -ct "HW_shader_parameter" -dv 1 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_NormalTexture_Name" -ln "u_NormalTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_NormalTexture_Type" -ln "u_NormalTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_NormalTexture" -ln "u_NormalTexture" -nn "Normal map (LIN)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_NormalTextureR" -ln "u_NormalTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -sn "u_NormalTextureG" -ln "u_NormalTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -sn "u_NormalTextureB" -ln "u_NormalTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_NormalTexture"; + addAttr -is true -ci true -h true -sn "u_NormalScale_Name" -ln "u_NormalScale_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_NormalScale_Type" -ln "u_NormalScale_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_NormalScale" -ln "u_NormalScale" -nn "Normal scale" + -ct "HW_shader_parameter" -dv 1 -smn 0 -smx 1 -at "float"; + addAttr -is true -ci true -h true -sn "u_EmissiveTexture_Name" -ln "u_EmissiveTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_EmissiveTexture_Type" -ln "u_EmissiveTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_EmissiveTexture" -ln "u_EmissiveTexture" -nn "Emissive map (sRGB)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_EmissiveTextureR" -ln "u_EmissiveTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -sn "u_EmissiveTextureG" -ln "u_EmissiveTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -sn "u_EmissiveTextureB" -ln "u_EmissiveTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_EmissiveTexture"; + addAttr -is true -ci true -h true -sn "u_EmissiveColor_Name" -ln "u_EmissiveColor_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_EmissiveColor_Type" -ln "u_EmissiveColor_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_EmissiveColor" -ln "u_EmissiveColor" -nn "Emissive color factor" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_EmissiveColorR" -ln "u_EmissiveColorR" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -sn "u_EmissiveColorG" -ln "u_EmissiveColorG" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -sn "u_EmissiveColorB" -ln "u_EmissiveColorB" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_EmissiveColor"; + addAttr -is true -ci true -h true -sn "u_DiffuseEnvTexture_Name" -ln "u_DiffuseEnvTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_DiffuseEnvTexture_Type" -ln "u_DiffuseEnvTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_DiffuseEnvTexture" -ln "u_DiffuseEnvTexture" + -nn "Diffuse env map (LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureR" -ln "u_DiffuseEnvTextureR" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureG" -ln "u_DiffuseEnvTextureG" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -sn "u_DiffuseEnvTextureB" -ln "u_DiffuseEnvTextureB" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_DiffuseEnvTexture"; + addAttr -is true -ci true -h true -sn "u_SpecularEnvTexture_Name" -ln "u_SpecularEnvTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_SpecularEnvTexture_Type" -ln "u_SpecularEnvTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_SpecularEnvTexture" -ln "u_SpecularEnvTexture" + -nn "Specular env map (LIN)" -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_SpecularEnvTextureR" -ln "u_SpecularEnvTextureR" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -sn "u_SpecularEnvTextureG" -ln "u_SpecularEnvTextureG" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -sn "u_SpecularEnvTextureB" -ln "u_SpecularEnvTextureB" + -ct "HW_shader_parameter" -smn 0 -smx 1 -at "float" -p "u_SpecularEnvTexture"; + addAttr -is true -ci true -h true -sn "u_brdfTexture_Name" -ln "u_brdfTexture_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_brdfTexture_Type" -ln "u_brdfTexture_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -uac -sn "u_brdfTexture" -ln "u_brdfTexture" -nn "BRDF LUT (sRGB)" + -ct "HW_shader_parameter" -at "float3" -nc 3; + addAttr -is true -ci true -sn "u_brdfTextureR" -ln "u_brdfTextureR" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -sn "u_brdfTextureG" -ln "u_brdfTextureG" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -sn "u_brdfTextureB" -ln "u_brdfTextureB" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_brdfTexture"; + addAttr -is true -ci true -h true -sn "u_UseMeshTangents_Name" -ln "u_UseMeshTangents_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_UseMeshTangents_Type" -ln "u_UseMeshTangents_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_UseMeshTangents" -ln "u_UseMeshTangents" -nn "Use mesh tangents?" + -ct "HW_shader_parameter" -min 0 -max 1 -at "bool"; + addAttr -is true -ci true -h true -sn "u_ScaleDiffBaseMR_Name" -ln "u_ScaleDiffBaseMR_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleDiffBaseMR_Type" -ln "u_ScaleDiffBaseMR_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMR" -ln "u_ScaleDiffBaseMR" -nn "Scale Diff Base MR" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRXYZ" -ln "u_ScaleDiffBaseMRXYZ" + -ct "HW_shader_parameter" -at "float3" -p "u_ScaleDiffBaseMR" -nc 3; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRX" -ln "u_ScaleDiffBaseMRX" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRY" -ln "u_ScaleDiffBaseMRY" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRZ" -ln "u_ScaleDiffBaseMRZ" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMRXYZ"; + addAttr -is true -ci true -sn "u_ScaleDiffBaseMRW" -ln "u_ScaleDiffBaseMRW" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleDiffBaseMR"; + addAttr -is true -ci true -h true -sn "u_ScaleFGDSpec_Name" -ln "u_ScaleFGDSpec_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleFGDSpec_Type" -ln "u_ScaleFGDSpec_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleFGDSpec" -ln "u_ScaleFGDSpec" -nn "Scale FGD Spec" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleFGDSpecXYZ" -ln "u_ScaleFGDSpecXYZ" -ct "HW_shader_parameter" + -at "float3" -p "u_ScaleFGDSpec" -nc 3; + addAttr -is true -ci true -sn "u_ScaleFGDSpecX" -ln "u_ScaleFGDSpecX" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecY" -ln "u_ScaleFGDSpecY" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecZ" -ln "u_ScaleFGDSpecZ" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpecXYZ"; + addAttr -is true -ci true -sn "u_ScaleFGDSpecW" -ln "u_ScaleFGDSpecW" -ct "HW_shader_parameter" + -smn 0 -smx 1 -at "float" -p "u_ScaleFGDSpec"; + addAttr -is true -ci true -h true -sn "u_ScaleIBL_Occl_Name" -ln "u_ScaleIBL_Occl_Name" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -h true -sn "u_ScaleIBL_Occl_Type" -ln "u_ScaleIBL_Occl_Type" + -ct "HW_shader_parameter" -dt "string"; + addAttr -is true -ci true -sn "u_ScaleIBL_Occl" -ln "u_ScaleIBL_Occl" -nn "Scale IBL AO(w)" + -ct "HW_shader_parameter" -at "compound" -nc 2; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclXYZ" -ln "u_ScaleIBL_OcclXYZ" -ct "HW_shader_parameter" + -at "float3" -p "u_ScaleIBL_Occl" -nc 3; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclX" -ln "u_ScaleIBL_OcclX" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclY" -ln "u_ScaleIBL_OcclY" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclZ" -ln "u_ScaleIBL_OcclZ" -ct "HW_shader_parameter" + -min 0 -max 1 -at "float" -p "u_ScaleIBL_OcclXYZ"; + addAttr -is true -ci true -sn "u_ScaleIBL_OcclW" -ln "u_ScaleIBL_OcclW" -ct "HW_shader_parameter" + -dv 1 -min 0 -max 1 -at "float" -p "u_ScaleIBL_Occl"; + addAttr -s false -is true -ci true -k true -sn "te" -ln "techniqueEnum" -nn "Technique" + -min 0 -max 1 -en "Solid:Transparent" -at "enum"; + addAttr -ci true -sn "Position" -ln "Position" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Position_Name" -ln "Position_Name" -ct "HW_shader_parameter" + -dt "string" -p "Position"; + addAttr -is true -ci true -h true -sn "Position_Source" -ln "Position_Source" -ct "HW_shader_parameter" + -dt "string" -p "Position"; + addAttr -is true -ci true -sn "Position_DefaultTexture" -ln "Position_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Position"; + addAttr -ci true -sn "Normal" -ln "Normal" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Normal_Name" -ln "Normal_Name" -ct "HW_shader_parameter" + -dt "string" -p "Normal"; + addAttr -is true -ci true -h true -sn "Normal_Source" -ln "Normal_Source" -ct "HW_shader_parameter" + -dt "string" -p "Normal"; + addAttr -is true -ci true -sn "Normal_DefaultTexture" -ln "Normal_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Normal"; + addAttr -ci true -sn "Tangent" -ln "Tangent" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Tangent_Name" -ln "Tangent_Name" -ct "HW_shader_parameter" + -dt "string" -p "Tangent"; + addAttr -is true -ci true -h true -sn "Tangent_Source" -ln "Tangent_Source" -ct "HW_shader_parameter" + -dt "string" -p "Tangent"; + addAttr -is true -ci true -sn "Tangent_DefaultTexture" -ln "Tangent_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Tangent"; + addAttr -ci true -sn "Binormal" -ln "Binormal" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "Binormal_Name" -ln "Binormal_Name" -ct "HW_shader_parameter" + -dt "string" -p "Binormal"; + addAttr -is true -ci true -h true -sn "Binormal_Source" -ln "Binormal_Source" -ct "HW_shader_parameter" + -dt "string" -p "Binormal"; + addAttr -is true -ci true -sn "Binormal_DefaultTexture" -ln "Binormal_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "Binormal"; + addAttr -ci true -sn "TexCoord0" -ln "TexCoord0" -at "compound" -nc 3; + addAttr -is true -ci true -h true -sn "TexCoord0_Name" -ln "TexCoord0_Name" -ct "HW_shader_parameter" + -dt "string" -p "TexCoord0"; + addAttr -is true -ci true -h true -sn "TexCoord0_Source" -ln "TexCoord0_Source" + -ct "HW_shader_parameter" -dt "string" -p "TexCoord0"; + addAttr -is true -ci true -sn "TexCoord0_DefaultTexture" -ln "TexCoord0_DefaultTexture" + -ct "HW_shader_parameter" -dt "string" -p "TexCoord0"; + setAttr ".vpar" -type "stringArray" 5 "Position" "Normal" "Tangent" "Binormal" "TexCoord0" ; + setAttr ".upar" -type "stringArray" 23 "u_LightColor" "u_LightIntensity" "u_LightRotation" "u_LightPitch" "u_BaseColorTexture" "u_BaseColorFactor" "u_MetallicTexture" "u_MetallicStrength" "u_RoughnessTexture" "u_RoughnessStrength" "u_OcclusionTexture" "u_OcclusionStrength" "u_NormalTexture" "u_NormalScale" "u_EmissiveTexture" "u_EmissiveColor" "u_DiffuseEnvTexture" "u_SpecularEnvTexture" "u_brdfTexture" "u_UseMeshTangents" "u_ScaleDiffBaseMR" "u_ScaleFGDSpec" "u_ScaleIBL_Occl" ; + setAttr ".s" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders/glTF_PBR.ogsfx"; + setAttr ".t" -type "string" "Transparent"; + setAttr ".u_LightColor_Name" -type "string" "u_LightColor"; + setAttr ".u_LightColor_Type" -type "string" "color3x1"; + setAttr ".u_LightColor" -type "float3" 1 1 1 ; + setAttr ".u_LightIntensity_Name" -type "string" "u_LightIntensity"; + setAttr ".u_LightIntensity_Type" -type "string" "float"; + setAttr ".u_LightIntensity" 1; + setAttr ".u_LightRotation_Name" -type "string" "u_LightRotation"; + setAttr ".u_LightRotation_Type" -type "string" "float"; + setAttr ".u_LightRotation" 75; + setAttr ".u_LightPitch_Name" -type "string" "u_LightPitch"; + setAttr ".u_LightPitch_Type" -type "string" "float"; + setAttr ".u_LightPitch" 40; + setAttr ".u_BaseColorTexture_Name" -type "string" "u_BaseColorTexture"; + setAttr ".u_BaseColorTexture_Type" -type "string" "texture"; + setAttr ".u_BaseColorTexture" -type "float3" 0 0 0 ; + setAttr ".u_BaseColorFactor_Name" -type "string" "u_BaseColorFactor"; + setAttr ".u_BaseColorFactor_Type" -type "string" "color4x1"; + setAttr ".u_BaseColorFactorRGB" -type "float3" 1 0 0 ; + setAttr ".u_BaseColorFactorA" 0.5; + setAttr ".u_MetallicTexture_Name" -type "string" "u_MetallicTexture"; + setAttr ".u_MetallicTexture_Type" -type "string" "texture"; + setAttr ".u_MetallicTexture" -type "float3" 0 0 0 ; + setAttr ".u_MetallicStrength_Name" -type "string" "u_MetallicStrength"; + setAttr ".u_MetallicStrength_Type" -type "string" "float"; + setAttr ".u_MetallicStrength" 0.5; + setAttr ".u_RoughnessTexture_Name" -type "string" "u_RoughnessTexture"; + setAttr ".u_RoughnessTexture_Type" -type "string" "texture"; + setAttr ".u_RoughnessTexture" -type "float3" 0 0 0 ; + setAttr ".u_RoughnessStrength_Name" -type "string" "u_RoughnessStrength"; + setAttr ".u_RoughnessStrength_Type" -type "string" "float"; + setAttr ".u_RoughnessStrength" 0.5; + setAttr ".u_OcclusionTexture_Name" -type "string" "u_OcclusionTexture"; + setAttr ".u_OcclusionTexture_Type" -type "string" "texture"; + setAttr ".u_OcclusionTexture" -type "float3" 0 0 0 ; + setAttr ".u_OcclusionStrength_Name" -type "string" "u_OcclusionStrength"; + setAttr ".u_OcclusionStrength_Type" -type "string" "float"; + setAttr ".u_OcclusionStrength" 1; + setAttr ".u_NormalTexture_Name" -type "string" "u_NormalTexture"; + setAttr ".u_NormalTexture_Type" -type "string" "texture"; + setAttr ".u_NormalTexture" -type "float3" 0 0 0 ; + setAttr ".u_NormalScale_Name" -type "string" "u_NormalScale"; + setAttr ".u_NormalScale_Type" -type "string" "float"; + setAttr ".u_NormalScale" 1; + setAttr ".u_EmissiveTexture_Name" -type "string" "u_EmissiveTexture"; + setAttr ".u_EmissiveTexture_Type" -type "string" "texture"; + setAttr ".u_EmissiveTexture" -type "float3" 0 0 0 ; + setAttr ".u_EmissiveColor_Name" -type "string" "u_EmissiveColor"; + setAttr ".u_EmissiveColor_Type" -type "string" "color3x1"; + setAttr ".u_EmissiveColor" -type "float3" 0 0 0 ; + setAttr ".u_DiffuseEnvTexture_Name" -type "string" "u_DiffuseEnvTexture"; + setAttr ".u_DiffuseEnvTexture_Type" -type "string" "texture"; + setAttr ".u_DiffuseEnvTexture" -type "float3" 0 0 0 ; + setAttr ".u_SpecularEnvTexture_Name" -type "string" "u_SpecularEnvTexture"; + setAttr ".u_SpecularEnvTexture_Type" -type "string" "texture"; + setAttr ".u_SpecularEnvTexture" -type "float3" 0 0 0 ; + setAttr ".u_brdfTexture_Name" -type "string" "u_brdfTexture"; + setAttr ".u_brdfTexture_Type" -type "string" "texture"; + setAttr ".u_brdfTexture" -type "float3" 0 0 0 ; + setAttr ".u_UseMeshTangents_Name" -type "string" "u_UseMeshTangents"; + setAttr ".u_UseMeshTangents_Type" -type "string" "bool"; + setAttr ".u_UseMeshTangents" no; + setAttr ".u_ScaleDiffBaseMR_Name" -type "string" "u_ScaleDiffBaseMR"; + setAttr ".u_ScaleDiffBaseMR_Type" -type "string" "float4x1"; + setAttr ".u_ScaleDiffBaseMRXYZ" -type "float3" 0 0 0 ; + setAttr ".u_ScaleDiffBaseMRW" 0; + setAttr ".u_ScaleFGDSpec_Name" -type "string" "u_ScaleFGDSpec"; + setAttr ".u_ScaleFGDSpec_Type" -type "string" "float4x1"; + setAttr ".u_ScaleFGDSpecXYZ" -type "float3" 0 0 0 ; + setAttr ".u_ScaleFGDSpecW" 0; + setAttr ".u_ScaleIBL_Occl_Name" -type "string" "u_ScaleIBL_Occl"; + setAttr ".u_ScaleIBL_Occl_Type" -type "string" "float4x1"; + setAttr ".u_ScaleIBL_OcclXYZ" -type "float3" 1 1 0 ; + setAttr ".u_ScaleIBL_OcclW" 1; + setAttr ".Position_Name" -type "string" "Position"; + setAttr ".Position_Source" -type "string" "position"; + setAttr ".Normal_Name" -type "string" "Normal"; + setAttr ".Normal_Source" -type "string" "normal"; + setAttr ".Tangent_Name" -type "string" "Tangent"; + setAttr ".Tangent_Source" -type "string" "tangent:map1"; + setAttr ".Binormal_Name" -type "string" "Binormal"; + setAttr ".Binormal_Source" -type "string" "binormal:map1"; + setAttr ".TexCoord0_Name" -type "string" "TexCoord0"; + setAttr ".TexCoord0_Source" -type "string" "uv:map1"; +createNode file -n "file4"; + rename -uid "A5940A1E-4D03-6EAA-B475-E79FB7D18B35"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/damaged_helmet_diffuse_env.dds"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture4"; + rename -uid "86DB68BF-4AA2-FDEF-4854-AFAB48C6F9F3"; +createNode file -n "file5"; + rename -uid "2D889A03-42F4-354F-DDE5-BE9B040DE016"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/damaged_helmet_specular_env.dds"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture5"; + rename -uid "B4E07BDD-47B8-0854-2B9A-8886B020B288"; +createNode file -n "file6"; + rename -uid "9D4F1225-4CC6-1EDD-9288-F78C509317E7"; + setAttr ".ftn" -type "string" "C:/Users/bugfa/Documents/maya/Maya2glTF/PBR/shaders//../images/brdfLUT.png"; + setAttr ".cs" -type "string" "sRGB"; +createNode place2dTexture -n "place2dTexture6"; + rename -uid "2EAE7CA7-440E-523D-318D-30B73F4B6624"; +createNode shadingEngine -n "GLSLShader2SG"; + rename -uid "07899F53-475F-1F1D-5494-18BB8357A6E2"; + setAttr ".ihi" 0; + setAttr ".ro" yes; +createNode materialInfo -n "materialInfo2"; + rename -uid "C0F28A77-4DCC-2BFC-7872-8A9B2E3D7E86"; +createNode script -n "uiConfigurationScriptNode"; + rename -uid "6AA9A624-463F-17F0-2BC2-BDBEBDF60592"; + setAttr ".b" -type "string" ( + "// Maya Mel UI Configuration File.\n//\n// This script is machine generated. Edit at your own risk.\n//\n//\n\nglobal string $gMainPane;\nif (`paneLayout -exists $gMainPane`) {\n\n\tglobal int $gUseScenePanelConfig;\n\tint $useSceneConfig = $gUseScenePanelConfig;\n\tint $nodeEditorPanelVisible = stringArrayContains(\"nodeEditorPanel1\", `getPanel -vis`);\n\tint $nodeEditorWorkspaceControlOpen = (`workspaceControl -exists nodeEditorPanel1Window` && `workspaceControl -q -visible nodeEditorPanel1Window`);\n\tint $menusOkayInPanels = `optionVar -q allowMenusInPanels`;\n\tint $nVisPanes = `paneLayout -q -nvp $gMainPane`;\n\tint $nPanes = 0;\n\tstring $editorName;\n\tstring $panelName;\n\tstring $itemFilterName;\n\tstring $panelConfig;\n\n\t//\n\t// get current state of the UI\n\t//\n\tsceneUIReplacement -update $gMainPane;\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"modelPanel\" (localizedPanelLabel(\"Top View\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tmodelPanel -edit -l (localizedPanelLabel(\"Top View\")) -mbv $menusOkayInPanels $panelName;\n" + + "\t\t$editorName = $panelName;\n modelEditor -e \n -camera \"top\" \n -useInteractiveMode 0\n -displayLights \"default\" \n -displayAppearance \"smoothShaded\" \n -activeOnly 0\n -ignorePanZoom 0\n -wireframeOnShaded 0\n -headsUpDisplay 1\n -holdOuts 1\n -selectionHiliteDisplay 1\n -useDefaultMaterial 0\n -bufferMode \"double\" \n -twoSidedLighting 0\n -backfaceCulling 0\n -xray 0\n -jointXray 0\n -activeComponentsXray 0\n -displayTextures 0\n -smoothWireframe 0\n -lineWidth 1\n -textureAnisotropic 0\n -textureHilight 1\n -textureSampling 2\n -textureDisplay \"modulate\" \n -textureMaxSize 32768\n -fogging 0\n -fogSource \"fragment\" \n -fogMode \"linear\" \n -fogStart 0\n -fogEnd 100\n -fogDensity 0.1\n -fogColor 0.5 0.5 0.5 1 \n" + + " -depthOfFieldPreview 1\n -maxConstantTransparency 1\n -rendererName \"vp2Renderer\" \n -objectFilterShowInHUD 1\n -isFiltered 0\n -colorResolution 256 256 \n -bumpResolution 512 512 \n -textureCompression 0\n -transparencyAlgorithm \"frontAndBackCull\" \n -transpInShadows 0\n -cullingOverride \"none\" \n -lowQualityLighting 0\n -maximumNumHardwareLights 1\n -occlusionCulling 0\n -shadingModel 0\n -useBaseRenderer 0\n -useReducedRenderer 0\n -smallObjectCulling 0\n -smallObjectThreshold -1 \n -interactiveDisableShadows 0\n -interactiveBackFaceCull 0\n -sortTransparent 1\n -controllers 1\n -nurbsCurves 1\n -nurbsSurfaces 1\n -polymeshes 1\n -subdivSurfaces 1\n -planes 1\n -lights 1\n -cameras 1\n -controlVertices 1\n" + + " -hulls 1\n -grid 1\n -imagePlane 1\n -joints 1\n -ikHandles 1\n -deformers 1\n -dynamics 1\n -particleInstancers 1\n -fluids 1\n -hairSystems 1\n -follicles 1\n -nCloths 1\n -nParticles 1\n -nRigids 1\n -dynamicConstraints 1\n -locators 1\n -manipulators 1\n -pluginShapes 1\n -dimensions 1\n -handles 1\n -pivots 1\n -textures 1\n -strokes 1\n -motionTrails 1\n -clipGhosts 1\n -greasePencils 1\n -shadows 0\n -captureSequenceNumber -1\n -width 1\n -height 1\n -sceneRenderFilter 0\n $editorName;\n modelEditor -e -viewSelected 0 $editorName;\n modelEditor -e \n -pluginObjects \"gpuCacheDisplayFilter\" 1 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n" + + "\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"modelPanel\" (localizedPanelLabel(\"Side View\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tmodelPanel -edit -l (localizedPanelLabel(\"Side View\")) -mbv $menusOkayInPanels $panelName;\n\t\t$editorName = $panelName;\n modelEditor -e \n -camera \"side\" \n -useInteractiveMode 0\n -displayLights \"default\" \n -displayAppearance \"smoothShaded\" \n -activeOnly 0\n -ignorePanZoom 0\n -wireframeOnShaded 0\n -headsUpDisplay 1\n -holdOuts 1\n -selectionHiliteDisplay 1\n -useDefaultMaterial 0\n -bufferMode \"double\" \n -twoSidedLighting 0\n -backfaceCulling 0\n -xray 0\n -jointXray 0\n -activeComponentsXray 0\n -displayTextures 0\n -smoothWireframe 0\n -lineWidth 1\n -textureAnisotropic 0\n -textureHilight 1\n -textureSampling 2\n" + + " -textureDisplay \"modulate\" \n -textureMaxSize 32768\n -fogging 0\n -fogSource \"fragment\" \n -fogMode \"linear\" \n -fogStart 0\n -fogEnd 100\n -fogDensity 0.1\n -fogColor 0.5 0.5 0.5 1 \n -depthOfFieldPreview 1\n -maxConstantTransparency 1\n -rendererName \"vp2Renderer\" \n -objectFilterShowInHUD 1\n -isFiltered 0\n -colorResolution 256 256 \n -bumpResolution 512 512 \n -textureCompression 0\n -transparencyAlgorithm \"frontAndBackCull\" \n -transpInShadows 0\n -cullingOverride \"none\" \n -lowQualityLighting 0\n -maximumNumHardwareLights 1\n -occlusionCulling 0\n -shadingModel 0\n -useBaseRenderer 0\n -useReducedRenderer 0\n -smallObjectCulling 0\n -smallObjectThreshold -1 \n -interactiveDisableShadows 0\n -interactiveBackFaceCull 0\n" + + " -sortTransparent 1\n -controllers 1\n -nurbsCurves 1\n -nurbsSurfaces 1\n -polymeshes 1\n -subdivSurfaces 1\n -planes 1\n -lights 1\n -cameras 1\n -controlVertices 1\n -hulls 1\n -grid 1\n -imagePlane 1\n -joints 1\n -ikHandles 1\n -deformers 1\n -dynamics 1\n -particleInstancers 1\n -fluids 1\n -hairSystems 1\n -follicles 1\n -nCloths 1\n -nParticles 1\n -nRigids 1\n -dynamicConstraints 1\n -locators 1\n -manipulators 1\n -pluginShapes 1\n -dimensions 1\n -handles 1\n -pivots 1\n -textures 1\n -strokes 1\n -motionTrails 1\n -clipGhosts 1\n -greasePencils 1\n -shadows 0\n -captureSequenceNumber -1\n -width 1\n -height 1\n" + + " -sceneRenderFilter 0\n $editorName;\n modelEditor -e -viewSelected 0 $editorName;\n modelEditor -e \n -pluginObjects \"gpuCacheDisplayFilter\" 1 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"modelPanel\" (localizedPanelLabel(\"Front View\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tmodelPanel -edit -l (localizedPanelLabel(\"Front View\")) -mbv $menusOkayInPanels $panelName;\n\t\t$editorName = $panelName;\n modelEditor -e \n -camera \"front\" \n -useInteractiveMode 0\n -displayLights \"default\" \n -displayAppearance \"smoothShaded\" \n -activeOnly 0\n -ignorePanZoom 0\n -wireframeOnShaded 0\n -headsUpDisplay 1\n -holdOuts 1\n -selectionHiliteDisplay 1\n -useDefaultMaterial 0\n -bufferMode \"double\" \n -twoSidedLighting 0\n -backfaceCulling 0\n" + + " -xray 0\n -jointXray 0\n -activeComponentsXray 0\n -displayTextures 0\n -smoothWireframe 0\n -lineWidth 1\n -textureAnisotropic 0\n -textureHilight 1\n -textureSampling 2\n -textureDisplay \"modulate\" \n -textureMaxSize 32768\n -fogging 0\n -fogSource \"fragment\" \n -fogMode \"linear\" \n -fogStart 0\n -fogEnd 100\n -fogDensity 0.1\n -fogColor 0.5 0.5 0.5 1 \n -depthOfFieldPreview 1\n -maxConstantTransparency 1\n -rendererName \"vp2Renderer\" \n -objectFilterShowInHUD 1\n -isFiltered 0\n -colorResolution 256 256 \n -bumpResolution 512 512 \n -textureCompression 0\n -transparencyAlgorithm \"frontAndBackCull\" \n -transpInShadows 0\n -cullingOverride \"none\" \n -lowQualityLighting 0\n -maximumNumHardwareLights 1\n -occlusionCulling 0\n" + + " -shadingModel 0\n -useBaseRenderer 0\n -useReducedRenderer 0\n -smallObjectCulling 0\n -smallObjectThreshold -1 \n -interactiveDisableShadows 0\n -interactiveBackFaceCull 0\n -sortTransparent 1\n -controllers 1\n -nurbsCurves 1\n -nurbsSurfaces 1\n -polymeshes 1\n -subdivSurfaces 1\n -planes 1\n -lights 1\n -cameras 1\n -controlVertices 1\n -hulls 1\n -grid 1\n -imagePlane 1\n -joints 1\n -ikHandles 1\n -deformers 1\n -dynamics 1\n -particleInstancers 1\n -fluids 1\n -hairSystems 1\n -follicles 1\n -nCloths 1\n -nParticles 1\n -nRigids 1\n -dynamicConstraints 1\n -locators 1\n -manipulators 1\n -pluginShapes 1\n -dimensions 1\n -handles 1\n -pivots 1\n" + + " -textures 1\n -strokes 1\n -motionTrails 1\n -clipGhosts 1\n -greasePencils 1\n -shadows 0\n -captureSequenceNumber -1\n -width 1\n -height 1\n -sceneRenderFilter 0\n $editorName;\n modelEditor -e -viewSelected 0 $editorName;\n modelEditor -e \n -pluginObjects \"gpuCacheDisplayFilter\" 1 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"modelPanel\" (localizedPanelLabel(\"Persp View\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tmodelPanel -edit -l (localizedPanelLabel(\"Persp View\")) -mbv $menusOkayInPanels $panelName;\n\t\t$editorName = $panelName;\n modelEditor -e \n -camera \"persp\" \n -useInteractiveMode 0\n -displayLights \"default\" \n -displayAppearance \"smoothShaded\" \n -activeOnly 0\n -ignorePanZoom 0\n" + + " -wireframeOnShaded 0\n -headsUpDisplay 1\n -holdOuts 1\n -selectionHiliteDisplay 1\n -useDefaultMaterial 0\n -bufferMode \"double\" \n -twoSidedLighting 0\n -backfaceCulling 0\n -xray 0\n -jointXray 0\n -activeComponentsXray 0\n -displayTextures 1\n -smoothWireframe 0\n -lineWidth 1\n -textureAnisotropic 0\n -textureHilight 1\n -textureSampling 2\n -textureDisplay \"modulate\" \n -textureMaxSize 32768\n -fogging 0\n -fogSource \"fragment\" \n -fogMode \"linear\" \n -fogStart 0\n -fogEnd 100\n -fogDensity 0.1\n -fogColor 0.5 0.5 0.5 1 \n -depthOfFieldPreview 1\n -maxConstantTransparency 1\n -rendererName \"vp2Renderer\" \n -objectFilterShowInHUD 1\n -isFiltered 0\n -colorResolution 256 256 \n -bumpResolution 512 512 \n" + + " -textureCompression 0\n -transparencyAlgorithm \"frontAndBackCull\" \n -transpInShadows 0\n -cullingOverride \"none\" \n -lowQualityLighting 0\n -maximumNumHardwareLights 1\n -occlusionCulling 0\n -shadingModel 0\n -useBaseRenderer 0\n -useReducedRenderer 0\n -smallObjectCulling 0\n -smallObjectThreshold -1 \n -interactiveDisableShadows 0\n -interactiveBackFaceCull 0\n -sortTransparent 1\n -controllers 1\n -nurbsCurves 1\n -nurbsSurfaces 1\n -polymeshes 1\n -subdivSurfaces 1\n -planes 1\n -lights 1\n -cameras 1\n -controlVertices 1\n -hulls 1\n -grid 1\n -imagePlane 1\n -joints 1\n -ikHandles 1\n -deformers 1\n -dynamics 1\n -particleInstancers 1\n -fluids 1\n -hairSystems 1\n -follicles 1\n" + + " -nCloths 1\n -nParticles 1\n -nRigids 1\n -dynamicConstraints 1\n -locators 1\n -manipulators 1\n -pluginShapes 1\n -dimensions 1\n -handles 1\n -pivots 1\n -textures 1\n -strokes 1\n -motionTrails 1\n -clipGhosts 1\n -greasePencils 1\n -shadows 0\n -captureSequenceNumber -1\n -width 2278\n -height 1447\n -sceneRenderFilter 0\n $editorName;\n modelEditor -e -viewSelected 0 $editorName;\n modelEditor -e \n -pluginObjects \"gpuCacheDisplayFilter\" 1 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"outlinerPanel\" (localizedPanelLabel(\"ToggledOutliner\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\toutlinerPanel -edit -l (localizedPanelLabel(\"ToggledOutliner\")) -mbv $menusOkayInPanels $panelName;\n" + + "\t\t$editorName = $panelName;\n outlinerEditor -e \n -docTag \"isolOutln_fromSeln\" \n -showShapes 1\n -showAssignedMaterials 0\n -showTimeEditor 1\n -showReferenceNodes 0\n -showReferenceMembers 0\n -showAttributes 0\n -showConnected 0\n -showAnimCurvesOnly 0\n -showMuteInfo 0\n -organizeByLayer 1\n -organizeByClip 1\n -showAnimLayerWeight 1\n -autoExpandLayers 1\n -autoExpand 0\n -showDagOnly 1\n -showAssets 1\n -showContainedOnly 1\n -showPublishedAsConnected 0\n -showParentContainers 0\n -showContainerContents 1\n -ignoreDagHierarchy 0\n -expandConnections 0\n -showUpstreamCurves 1\n -showUnitlessCurves 1\n -showCompounds 1\n -showLeafs 1\n -showNumericAttrsOnly 0\n -highlightActive 1\n -autoSelectNewObjects 0\n" + + " -doNotSelectNewObjects 0\n -dropIsParent 1\n -transmitFilters 0\n -setFilter \"defaultSetFilter\" \n -showSetMembers 1\n -allowMultiSelection 1\n -alwaysToggleSelect 0\n -directSelect 0\n -isSet 0\n -isSetMember 0\n -displayMode \"DAG\" \n -expandObjects 0\n -setsIgnoreFilters 1\n -containersIgnoreFilters 0\n -editAttrName 0\n -showAttrValues 0\n -highlightSecondary 0\n -showUVAttrsOnly 0\n -showTextureNodesOnly 0\n -attrAlphaOrder \"default\" \n -animLayerFilterOptions \"allAffecting\" \n -sortOrder \"none\" \n -longNames 0\n -niceNames 1\n -showNamespace 1\n -showPinIcons 0\n -mapMotionTrails 0\n -ignoreHiddenAttribute 0\n -ignoreOutlinerColor 0\n -renderFilterVisible 0\n -renderFilterIndex 0\n -selectionOrder \"chronological\" \n" + + " -expandAttribute 0\n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"outlinerPanel\" (localizedPanelLabel(\"Outliner\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\toutlinerPanel -edit -l (localizedPanelLabel(\"Outliner\")) -mbv $menusOkayInPanels $panelName;\n\t\t$editorName = $panelName;\n outlinerEditor -e \n -showShapes 0\n -showAssignedMaterials 0\n -showTimeEditor 1\n -showReferenceNodes 0\n -showReferenceMembers 0\n -showAttributes 0\n -showConnected 0\n -showAnimCurvesOnly 0\n -showMuteInfo 0\n -organizeByLayer 1\n -organizeByClip 1\n -showAnimLayerWeight 1\n -autoExpandLayers 1\n -autoExpand 0\n -showDagOnly 1\n -showAssets 1\n -showContainedOnly 1\n -showPublishedAsConnected 0\n -showParentContainers 0\n" + + " -showContainerContents 1\n -ignoreDagHierarchy 0\n -expandConnections 0\n -showUpstreamCurves 1\n -showUnitlessCurves 1\n -showCompounds 1\n -showLeafs 1\n -showNumericAttrsOnly 0\n -highlightActive 1\n -autoSelectNewObjects 0\n -doNotSelectNewObjects 0\n -dropIsParent 1\n -transmitFilters 0\n -setFilter \"0\" \n -showSetMembers 1\n -allowMultiSelection 1\n -alwaysToggleSelect 0\n -directSelect 0\n -displayMode \"DAG\" \n -expandObjects 0\n -setsIgnoreFilters 1\n -containersIgnoreFilters 0\n -editAttrName 0\n -showAttrValues 0\n -highlightSecondary 0\n -showUVAttrsOnly 0\n -showTextureNodesOnly 0\n -attrAlphaOrder \"default\" \n -animLayerFilterOptions \"allAffecting\" \n -sortOrder \"none\" \n -longNames 0\n -niceNames 1\n" + + " -showNamespace 1\n -showPinIcons 0\n -mapMotionTrails 0\n -ignoreHiddenAttribute 0\n -ignoreOutlinerColor 0\n -renderFilterVisible 0\n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"graphEditor\" (localizedPanelLabel(\"Graph Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Graph Editor\")) -mbv $menusOkayInPanels $panelName;\n\n\t\t\t$editorName = ($panelName+\"OutlineEd\");\n outlinerEditor -e \n -showShapes 1\n -showAssignedMaterials 0\n -showTimeEditor 1\n -showReferenceNodes 0\n -showReferenceMembers 0\n -showAttributes 1\n -showConnected 1\n -showAnimCurvesOnly 1\n -showMuteInfo 0\n -organizeByLayer 1\n -organizeByClip 1\n" + + " -showAnimLayerWeight 1\n -autoExpandLayers 1\n -autoExpand 1\n -showDagOnly 0\n -showAssets 1\n -showContainedOnly 0\n -showPublishedAsConnected 0\n -showParentContainers 1\n -showContainerContents 0\n -ignoreDagHierarchy 0\n -expandConnections 1\n -showUpstreamCurves 1\n -showUnitlessCurves 1\n -showCompounds 0\n -showLeafs 1\n -showNumericAttrsOnly 1\n -highlightActive 0\n -autoSelectNewObjects 1\n -doNotSelectNewObjects 0\n -dropIsParent 1\n -transmitFilters 1\n -setFilter \"0\" \n -showSetMembers 0\n -allowMultiSelection 1\n -alwaysToggleSelect 0\n -directSelect 0\n -displayMode \"DAG\" \n -expandObjects 0\n -setsIgnoreFilters 1\n" + + " -containersIgnoreFilters 0\n -editAttrName 0\n -showAttrValues 0\n -highlightSecondary 0\n -showUVAttrsOnly 0\n -showTextureNodesOnly 0\n -attrAlphaOrder \"default\" \n -animLayerFilterOptions \"allAffecting\" \n -sortOrder \"none\" \n -longNames 0\n -niceNames 1\n -showNamespace 1\n -showPinIcons 1\n -mapMotionTrails 1\n -ignoreHiddenAttribute 0\n -ignoreOutlinerColor 0\n -renderFilterVisible 0\n $editorName;\n\n\t\t\t$editorName = ($panelName+\"GraphEd\");\n animCurveEditor -e \n -displayKeys 1\n -displayTangents 0\n -displayActiveKeys 0\n -displayActiveKeyTangents 1\n -displayInfinities 0\n -displayValues 0\n -autoFit 1\n -autoFitTime 0\n -snapTime \"integer\" \n" + + " -snapValue \"none\" \n -showResults \"off\" \n -showBufferCurves \"off\" \n -smoothness \"fine\" \n -resultSamples 1\n -resultScreenSamples 0\n -resultUpdate \"delayed\" \n -showUpstreamCurves 1\n -showCurveNames 0\n -showActiveCurveNames 0\n -stackedCurves 0\n -stackedCurvesMin -1\n -stackedCurvesMax 1\n -stackedCurvesSpace 0.2\n -displayNormalized 0\n -preSelectionHighlight 0\n -constrainDrag 0\n -classicMode 1\n -valueLinesToggle 0\n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"dopeSheetPanel\" (localizedPanelLabel(\"Dope Sheet\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Dope Sheet\")) -mbv $menusOkayInPanels $panelName;\n" + + "\n\t\t\t$editorName = ($panelName+\"OutlineEd\");\n outlinerEditor -e \n -showShapes 1\n -showAssignedMaterials 0\n -showTimeEditor 1\n -showReferenceNodes 0\n -showReferenceMembers 0\n -showAttributes 1\n -showConnected 1\n -showAnimCurvesOnly 1\n -showMuteInfo 0\n -organizeByLayer 1\n -organizeByClip 1\n -showAnimLayerWeight 1\n -autoExpandLayers 1\n -autoExpand 0\n -showDagOnly 0\n -showAssets 1\n -showContainedOnly 0\n -showPublishedAsConnected 0\n -showParentContainers 1\n -showContainerContents 0\n -ignoreDagHierarchy 0\n -expandConnections 1\n -showUpstreamCurves 1\n -showUnitlessCurves 0\n -showCompounds 1\n -showLeafs 1\n -showNumericAttrsOnly 1\n" + + " -highlightActive 0\n -autoSelectNewObjects 0\n -doNotSelectNewObjects 1\n -dropIsParent 1\n -transmitFilters 0\n -setFilter \"0\" \n -showSetMembers 0\n -allowMultiSelection 1\n -alwaysToggleSelect 0\n -directSelect 0\n -displayMode \"DAG\" \n -expandObjects 0\n -setsIgnoreFilters 1\n -containersIgnoreFilters 0\n -editAttrName 0\n -showAttrValues 0\n -highlightSecondary 0\n -showUVAttrsOnly 0\n -showTextureNodesOnly 0\n -attrAlphaOrder \"default\" \n -animLayerFilterOptions \"allAffecting\" \n -sortOrder \"none\" \n -longNames 0\n -niceNames 1\n -showNamespace 1\n -showPinIcons 0\n -mapMotionTrails 1\n -ignoreHiddenAttribute 0\n -ignoreOutlinerColor 0\n" + + " -renderFilterVisible 0\n $editorName;\n\n\t\t\t$editorName = ($panelName+\"DopeSheetEd\");\n dopeSheetEditor -e \n -displayKeys 1\n -displayTangents 0\n -displayActiveKeys 0\n -displayActiveKeyTangents 0\n -displayInfinities 0\n -displayValues 0\n -autoFit 0\n -autoFitTime 0\n -snapTime \"integer\" \n -snapValue \"none\" \n -outliner \"dopeSheetPanel1OutlineEd\" \n -showSummary 1\n -showScene 0\n -hierarchyBelow 0\n -showTicks 1\n -selectionWindow 0 0 0 0 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"timeEditorPanel\" (localizedPanelLabel(\"Time Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Time Editor\")) -mbv $menusOkayInPanels $panelName;\n" + + "\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"clipEditorPanel\" (localizedPanelLabel(\"Trax Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Trax Editor\")) -mbv $menusOkayInPanels $panelName;\n\n\t\t\t$editorName = clipEditorNameFromPanel($panelName);\n clipEditor -e \n -displayKeys 0\n -displayTangents 0\n -displayActiveKeys 0\n -displayActiveKeyTangents 0\n -displayInfinities 0\n -displayValues 0\n -autoFit 0\n -autoFitTime 0\n -snapTime \"none\" \n -snapValue \"none\" \n -initialized 0\n -manageSequencer 0 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"sequenceEditorPanel\" (localizedPanelLabel(\"Camera Sequencer\")) `;\n" + + "\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Camera Sequencer\")) -mbv $menusOkayInPanels $panelName;\n\n\t\t\t$editorName = sequenceEditorNameFromPanel($panelName);\n clipEditor -e \n -displayKeys 0\n -displayTangents 0\n -displayActiveKeys 0\n -displayActiveKeyTangents 0\n -displayInfinities 0\n -displayValues 0\n -autoFit 0\n -autoFitTime 0\n -snapTime \"none\" \n -snapValue \"none\" \n -initialized 0\n -manageSequencer 1 \n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"hyperGraphPanel\" (localizedPanelLabel(\"Hypergraph Hierarchy\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Hypergraph Hierarchy\")) -mbv $menusOkayInPanels $panelName;\n" + + "\n\t\t\t$editorName = ($panelName+\"HyperGraphEd\");\n hyperGraph -e \n -graphLayoutStyle \"hierarchicalLayout\" \n -orientation \"horiz\" \n -mergeConnections 0\n -zoom 1\n -animateTransition 0\n -showRelationships 1\n -showShapes 0\n -showDeformers 0\n -showExpressions 0\n -showConstraints 0\n -showConnectionFromSelected 0\n -showConnectionToSelected 0\n -showConstraintLabels 0\n -showUnderworld 0\n -showInvisible 0\n -transitionFrames 1\n -opaqueContainers 0\n -freeform 0\n -imagePosition 0 0 \n -imageScale 1\n -imageEnabled 0\n -graphType \"DAG\" \n -heatMapDisplay 0\n -updateSelection 1\n -updateNodeAdded 1\n -useDrawOverrideColor 0\n -limitGraphTraversal -1\n" + + " -range 0 0 \n -iconSize \"smallIcons\" \n -showCachedConnections 0\n $editorName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"hyperShadePanel\" (localizedPanelLabel(\"Hypershade\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Hypershade\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"visorPanel\" (localizedPanelLabel(\"Visor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Visor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"nodeEditorPanel\" (localizedPanelLabel(\"Node Editor\")) `;\n\tif ($nodeEditorPanelVisible || $nodeEditorWorkspaceControlOpen) {\n" + + "\t\tif (\"\" == $panelName) {\n\t\t\tif ($useSceneConfig) {\n\t\t\t\t$panelName = `scriptedPanel -unParent -type \"nodeEditorPanel\" -l (localizedPanelLabel(\"Node Editor\")) -mbv $menusOkayInPanels `;\n\n\t\t\t$editorName = ($panelName+\"NodeEditorEd\");\n nodeEditor -e \n -allAttributes 0\n -allNodes 0\n -autoSizeNodes 1\n -consistentNameSize 1\n -createNodeCommand \"nodeEdCreateNodeCommand\" \n -connectNodeOnCreation 0\n -connectOnDrop 0\n -copyConnectionsOnPaste 0\n -defaultPinnedState 0\n -additiveGraphingMode 0\n -settingsChangedCallback \"nodeEdSyncControls\" \n -traversalDepthLimit -1\n -keyPressCommand \"nodeEdKeyPressCommand\" \n -nodeTitleMode \"name\" \n -gridSnap 0\n -gridVisibility 1\n -crosshairOnEdgeDragging 0\n -popupMenuScript \"nodeEdBuildPanelMenus\" \n -showNamespace 1\n" + + " -showShapes 1\n -showSGShapes 0\n -showTransforms 1\n -useAssets 1\n -syncedSelection 1\n -extendToShapes 1\n -editorMode \"default\" \n $editorName;\n\t\t\t}\n\t\t} else {\n\t\t\t$label = `panel -q -label $panelName`;\n\t\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Node Editor\")) -mbv $menusOkayInPanels $panelName;\n\n\t\t\t$editorName = ($panelName+\"NodeEditorEd\");\n nodeEditor -e \n -allAttributes 0\n -allNodes 0\n -autoSizeNodes 1\n -consistentNameSize 1\n -createNodeCommand \"nodeEdCreateNodeCommand\" \n -connectNodeOnCreation 0\n -connectOnDrop 0\n -copyConnectionsOnPaste 0\n -defaultPinnedState 0\n -additiveGraphingMode 0\n -settingsChangedCallback \"nodeEdSyncControls\" \n -traversalDepthLimit -1\n -keyPressCommand \"nodeEdKeyPressCommand\" \n" + + " -nodeTitleMode \"name\" \n -gridSnap 0\n -gridVisibility 1\n -crosshairOnEdgeDragging 0\n -popupMenuScript \"nodeEdBuildPanelMenus\" \n -showNamespace 1\n -showShapes 1\n -showSGShapes 0\n -showTransforms 1\n -useAssets 1\n -syncedSelection 1\n -extendToShapes 1\n -editorMode \"default\" \n $editorName;\n\t\t\tif (!$useSceneConfig) {\n\t\t\t\tpanel -e -l $label $panelName;\n\t\t\t}\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"createNodePanel\" (localizedPanelLabel(\"Create Node\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Create Node\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"polyTexturePlacementPanel\" (localizedPanelLabel(\"UV Editor\")) `;\n" + + "\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"UV Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"renderWindowPanel\" (localizedPanelLabel(\"Render View\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Render View\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"shapePanel\" (localizedPanelLabel(\"Shape Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tshapePanel -edit -l (localizedPanelLabel(\"Shape Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextPanel \"posePanel\" (localizedPanelLabel(\"Pose Editor\")) `;\n\tif (\"\" != $panelName) {\n" + + "\t\t$label = `panel -q -label $panelName`;\n\t\tposePanel -edit -l (localizedPanelLabel(\"Pose Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"dynRelEdPanel\" (localizedPanelLabel(\"Dynamic Relationships\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Dynamic Relationships\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"relationshipPanel\" (localizedPanelLabel(\"Relationship Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Relationship Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"referenceEditorPanel\" (localizedPanelLabel(\"Reference Editor\")) `;\n" + + "\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Reference Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"componentEditorPanel\" (localizedPanelLabel(\"Component Editor\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Component Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"dynPaintScriptedPanelType\" (localizedPanelLabel(\"Paint Effects\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Paint Effects\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"scriptEditorPanel\" (localizedPanelLabel(\"Script Editor\")) `;\n" + + "\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Script Editor\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"profilerPanel\" (localizedPanelLabel(\"Profiler Tool\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Profiler Tool\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\t$panelName = `sceneUIReplacement -getNextScriptedPanel \"contentBrowserPanel\" (localizedPanelLabel(\"Content Browser\")) `;\n\tif (\"\" != $panelName) {\n\t\t$label = `panel -q -label $panelName`;\n\t\tscriptedPanel -edit -l (localizedPanelLabel(\"Content Browser\")) -mbv $menusOkayInPanels $panelName;\n\t\tif (!$useSceneConfig) {\n\t\t\tpanel -e -l $label $panelName;\n\t\t}\n\t}\n\n\n\tif ($useSceneConfig) {\n string $configName = `getPanel -cwl (localizedPanelLabel(\"Current Layout\"))`;\n" + + " if (\"\" != $configName) {\n\t\t\tpanelConfiguration -edit -label (localizedPanelLabel(\"Current Layout\")) \n\t\t\t\t-userCreated false\n\t\t\t\t-defaultImage \"vacantCell.xP:/\"\n\t\t\t\t-image \"\"\n\t\t\t\t-sc false\n\t\t\t\t-configString \"global string $gMainPane; paneLayout -e -cn \\\"single\\\" -ps 1 100 100 $gMainPane;\"\n\t\t\t\t-removeAllPanels\n\t\t\t\t-ap false\n\t\t\t\t\t(localizedPanelLabel(\"Persp View\")) \n\t\t\t\t\t\"modelPanel\"\n" + + "\t\t\t\t\t\"$panelName = `modelPanel -unParent -l (localizedPanelLabel(\\\"Persp View\\\")) -mbv $menusOkayInPanels `;\\n$editorName = $panelName;\\nmodelEditor -e \\n -cam `findStartUpCamera persp` \\n -useInteractiveMode 0\\n -displayLights \\\"default\\\" \\n -displayAppearance \\\"smoothShaded\\\" \\n -activeOnly 0\\n -ignorePanZoom 0\\n -wireframeOnShaded 0\\n -headsUpDisplay 1\\n -holdOuts 1\\n -selectionHiliteDisplay 1\\n -useDefaultMaterial 0\\n -bufferMode \\\"double\\\" \\n -twoSidedLighting 0\\n -backfaceCulling 0\\n -xray 0\\n -jointXray 0\\n -activeComponentsXray 0\\n -displayTextures 1\\n -smoothWireframe 0\\n -lineWidth 1\\n -textureAnisotropic 0\\n -textureHilight 1\\n -textureSampling 2\\n -textureDisplay \\\"modulate\\\" \\n -textureMaxSize 32768\\n -fogging 0\\n -fogSource \\\"fragment\\\" \\n -fogMode \\\"linear\\\" \\n -fogStart 0\\n -fogEnd 100\\n -fogDensity 0.1\\n -fogColor 0.5 0.5 0.5 1 \\n -depthOfFieldPreview 1\\n -maxConstantTransparency 1\\n -rendererName \\\"vp2Renderer\\\" \\n -objectFilterShowInHUD 1\\n -isFiltered 0\\n -colorResolution 256 256 \\n -bumpResolution 512 512 \\n -textureCompression 0\\n -transparencyAlgorithm \\\"frontAndBackCull\\\" \\n -transpInShadows 0\\n -cullingOverride \\\"none\\\" \\n -lowQualityLighting 0\\n -maximumNumHardwareLights 1\\n -occlusionCulling 0\\n -shadingModel 0\\n -useBaseRenderer 0\\n -useReducedRenderer 0\\n -smallObjectCulling 0\\n -smallObjectThreshold -1 \\n -interactiveDisableShadows 0\\n -interactiveBackFaceCull 0\\n -sortTransparent 1\\n -controllers 1\\n -nurbsCurves 1\\n -nurbsSurfaces 1\\n -polymeshes 1\\n -subdivSurfaces 1\\n -planes 1\\n -lights 1\\n -cameras 1\\n -controlVertices 1\\n -hulls 1\\n -grid 1\\n -imagePlane 1\\n -joints 1\\n -ikHandles 1\\n -deformers 1\\n -dynamics 1\\n -particleInstancers 1\\n -fluids 1\\n -hairSystems 1\\n -follicles 1\\n -nCloths 1\\n -nParticles 1\\n -nRigids 1\\n -dynamicConstraints 1\\n -locators 1\\n -manipulators 1\\n -pluginShapes 1\\n -dimensions 1\\n -handles 1\\n -pivots 1\\n -textures 1\\n -strokes 1\\n -motionTrails 1\\n -clipGhosts 1\\n -greasePencils 1\\n -shadows 0\\n -captureSequenceNumber -1\\n -width 2278\\n -height 1447\\n -sceneRenderFilter 0\\n $editorName;\\nmodelEditor -e -viewSelected 0 $editorName;\\nmodelEditor -e \\n -pluginObjects \\\"gpuCacheDisplayFilter\\\" 1 \\n $editorName\"\n" + + "\t\t\t\t\t\"modelPanel -edit -l (localizedPanelLabel(\\\"Persp View\\\")) -mbv $menusOkayInPanels $panelName;\\n$editorName = $panelName;\\nmodelEditor -e \\n -cam `findStartUpCamera persp` \\n -useInteractiveMode 0\\n -displayLights \\\"default\\\" \\n -displayAppearance \\\"smoothShaded\\\" \\n -activeOnly 0\\n -ignorePanZoom 0\\n -wireframeOnShaded 0\\n -headsUpDisplay 1\\n -holdOuts 1\\n -selectionHiliteDisplay 1\\n -useDefaultMaterial 0\\n -bufferMode \\\"double\\\" \\n -twoSidedLighting 0\\n -backfaceCulling 0\\n -xray 0\\n -jointXray 0\\n -activeComponentsXray 0\\n -displayTextures 1\\n -smoothWireframe 0\\n -lineWidth 1\\n -textureAnisotropic 0\\n -textureHilight 1\\n -textureSampling 2\\n -textureDisplay \\\"modulate\\\" \\n -textureMaxSize 32768\\n -fogging 0\\n -fogSource \\\"fragment\\\" \\n -fogMode \\\"linear\\\" \\n -fogStart 0\\n -fogEnd 100\\n -fogDensity 0.1\\n -fogColor 0.5 0.5 0.5 1 \\n -depthOfFieldPreview 1\\n -maxConstantTransparency 1\\n -rendererName \\\"vp2Renderer\\\" \\n -objectFilterShowInHUD 1\\n -isFiltered 0\\n -colorResolution 256 256 \\n -bumpResolution 512 512 \\n -textureCompression 0\\n -transparencyAlgorithm \\\"frontAndBackCull\\\" \\n -transpInShadows 0\\n -cullingOverride \\\"none\\\" \\n -lowQualityLighting 0\\n -maximumNumHardwareLights 1\\n -occlusionCulling 0\\n -shadingModel 0\\n -useBaseRenderer 0\\n -useReducedRenderer 0\\n -smallObjectCulling 0\\n -smallObjectThreshold -1 \\n -interactiveDisableShadows 0\\n -interactiveBackFaceCull 0\\n -sortTransparent 1\\n -controllers 1\\n -nurbsCurves 1\\n -nurbsSurfaces 1\\n -polymeshes 1\\n -subdivSurfaces 1\\n -planes 1\\n -lights 1\\n -cameras 1\\n -controlVertices 1\\n -hulls 1\\n -grid 1\\n -imagePlane 1\\n -joints 1\\n -ikHandles 1\\n -deformers 1\\n -dynamics 1\\n -particleInstancers 1\\n -fluids 1\\n -hairSystems 1\\n -follicles 1\\n -nCloths 1\\n -nParticles 1\\n -nRigids 1\\n -dynamicConstraints 1\\n -locators 1\\n -manipulators 1\\n -pluginShapes 1\\n -dimensions 1\\n -handles 1\\n -pivots 1\\n -textures 1\\n -strokes 1\\n -motionTrails 1\\n -clipGhosts 1\\n -greasePencils 1\\n -shadows 0\\n -captureSequenceNumber -1\\n -width 2278\\n -height 1447\\n -sceneRenderFilter 0\\n $editorName;\\nmodelEditor -e -viewSelected 0 $editorName;\\nmodelEditor -e \\n -pluginObjects \\\"gpuCacheDisplayFilter\\\" 1 \\n $editorName\"\n" + + "\t\t\t\t$configName;\n\n setNamedPanelLayout (localizedPanelLabel(\"Current Layout\"));\n }\n\n panelHistory -e -clear mainPanelHistory;\n sceneUIReplacement -clear;\n\t}\n\n\ngrid -spacing 5 -size 12 -divisions 5 -displayAxes yes -displayGridLines yes -displayDivisionLines yes -displayPerspectiveLabels no -displayOrthographicLabels no -displayAxesBold yes -perspectiveLabelPosition axis -orthographicLabelPosition edge;\nviewManip -drawCompass 0 -compassAngle 0 -frontParameters \"\" -homeParameters \"\" -selectionLockParameters \"\";\n}\n"); + setAttr ".st" 3; +createNode script -n "sceneConfigurationScriptNode"; + rename -uid "9FA160C7-49FC-1CEA-0479-D282303025A3"; + setAttr ".b" -type "string" "playbackOptions -min 1 -max 120 -ast 1 -aet 200 "; + setAttr ".st" 6; +select -ne :time1; + setAttr ".o" 1; + setAttr ".unw" 1; +select -ne :hardwareRenderingGlobals; + setAttr ".otfna" -type "stringArray" 22 "NURBS Curves" "NURBS Surfaces" "Polygons" "Subdiv Surface" "Particles" "Particle Instance" "Fluids" "Strokes" "Image Planes" "UI" "Lights" "Cameras" "Locators" "Joints" "IK Handles" "Deformers" "Motion Trails" "Components" "Hair Systems" "Follicles" "Misc. UI" "Ornaments" ; + setAttr ".otfva" -type "Int32Array" 22 0 1 1 1 1 1 + 1 1 1 0 0 0 0 0 0 0 0 0 + 0 0 0 0 ; + setAttr ".fprt" yes; +select -ne :renderPartition; + setAttr -s 4 ".st"; +select -ne :renderGlobalsList1; +select -ne :defaultShaderList1; + setAttr -s 6 ".s"; +select -ne :postProcessList1; + setAttr -s 2 ".p"; +select -ne :defaultRenderUtilityList1; + setAttr -s 6 ".u"; +select -ne :defaultRenderingList1; +select -ne :defaultTextureList1; + setAttr -s 6 ".tx"; +select -ne :initialShadingGroup; + setAttr ".ro" yes; +select -ne :initialParticleSE; + setAttr ".ro" yes; +select -ne :defaultResolution; + setAttr ".pa" 1; +select -ne :hardwareRenderGlobals; + setAttr ".ctrs" 256; + setAttr ".btrs" 512; +select -ne :ikSystem; + setAttr -s 4 ".sol"; +connectAttr "polyCube1.out" "pCubeShape1.i"; +connectAttr "polyCube2.out" "pCubeShape2.i"; +relationship "link" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message"; +relationship "link" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message"; +relationship "link" ":lightLinker1" "GLSLShader1SG.message" ":defaultLightSet.message"; +relationship "link" ":lightLinker1" "GLSLShader2SG.message" ":defaultLightSet.message"; +relationship "shadowLink" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message"; +relationship "shadowLink" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message"; +relationship "shadowLink" ":lightLinker1" "GLSLShader1SG.message" ":defaultLightSet.message"; +relationship "shadowLink" ":lightLinker1" "GLSLShader2SG.message" ":defaultLightSet.message"; +connectAttr "layerManager.dli[0]" "defaultLayer.id"; +connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid"; +connectAttr "file1.oc" "GLSLShader1.u_DiffuseEnvTexture"; +connectAttr "file2.oc" "GLSLShader1.u_SpecularEnvTexture"; +connectAttr "file3.oc" "GLSLShader1.u_brdfTexture"; +connectAttr ":defaultColorMgtGlobals.cme" "file1.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file1.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file1.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file1.ws"; +connectAttr "place2dTexture1.c" "file1.c"; +connectAttr "place2dTexture1.tf" "file1.tf"; +connectAttr "place2dTexture1.rf" "file1.rf"; +connectAttr "place2dTexture1.mu" "file1.mu"; +connectAttr "place2dTexture1.mv" "file1.mv"; +connectAttr "place2dTexture1.s" "file1.s"; +connectAttr "place2dTexture1.wu" "file1.wu"; +connectAttr "place2dTexture1.wv" "file1.wv"; +connectAttr "place2dTexture1.re" "file1.re"; +connectAttr "place2dTexture1.r" "file1.ro"; +connectAttr "place2dTexture1.of" "file1.of"; +connectAttr "place2dTexture1.n" "file1.n"; +connectAttr "place2dTexture1.vt1" "file1.vt1"; +connectAttr "place2dTexture1.vt2" "file1.vt2"; +connectAttr "place2dTexture1.vt3" "file1.vt3"; +connectAttr "place2dTexture1.vc1" "file1.vc1"; +connectAttr "place2dTexture1.o" "file1.uv"; +connectAttr "place2dTexture1.ofs" "file1.fs"; +connectAttr ":defaultColorMgtGlobals.cme" "file2.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file2.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file2.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file2.ws"; +connectAttr "place2dTexture2.c" "file2.c"; +connectAttr "place2dTexture2.tf" "file2.tf"; +connectAttr "place2dTexture2.rf" "file2.rf"; +connectAttr "place2dTexture2.mu" "file2.mu"; +connectAttr "place2dTexture2.mv" "file2.mv"; +connectAttr "place2dTexture2.s" "file2.s"; +connectAttr "place2dTexture2.wu" "file2.wu"; +connectAttr "place2dTexture2.wv" "file2.wv"; +connectAttr "place2dTexture2.re" "file2.re"; +connectAttr "place2dTexture2.r" "file2.ro"; +connectAttr "place2dTexture2.of" "file2.of"; +connectAttr "place2dTexture2.n" "file2.n"; +connectAttr "place2dTexture2.vt1" "file2.vt1"; +connectAttr "place2dTexture2.vt2" "file2.vt2"; +connectAttr "place2dTexture2.vt3" "file2.vt3"; +connectAttr "place2dTexture2.vc1" "file2.vc1"; +connectAttr "place2dTexture2.o" "file2.uv"; +connectAttr "place2dTexture2.ofs" "file2.fs"; +connectAttr ":defaultColorMgtGlobals.cme" "file3.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file3.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file3.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file3.ws"; +connectAttr "place2dTexture3.c" "file3.c"; +connectAttr "place2dTexture3.tf" "file3.tf"; +connectAttr "place2dTexture3.rf" "file3.rf"; +connectAttr "place2dTexture3.mu" "file3.mu"; +connectAttr "place2dTexture3.mv" "file3.mv"; +connectAttr "place2dTexture3.s" "file3.s"; +connectAttr "place2dTexture3.wu" "file3.wu"; +connectAttr "place2dTexture3.wv" "file3.wv"; +connectAttr "place2dTexture3.re" "file3.re"; +connectAttr "place2dTexture3.r" "file3.ro"; +connectAttr "place2dTexture3.of" "file3.of"; +connectAttr "place2dTexture3.n" "file3.n"; +connectAttr "place2dTexture3.vt1" "file3.vt1"; +connectAttr "place2dTexture3.vt2" "file3.vt2"; +connectAttr "place2dTexture3.vt3" "file3.vt3"; +connectAttr "place2dTexture3.vc1" "file3.vc1"; +connectAttr "place2dTexture3.o" "file3.uv"; +connectAttr "place2dTexture3.ofs" "file3.fs"; +connectAttr "GLSLShader1.oc" "GLSLShader1SG.ss"; +connectAttr "pCubeShape1.iog" "GLSLShader1SG.dsm" -na; +connectAttr "GLSLShader1SG.msg" "materialInfo1.sg"; +connectAttr "GLSLShader1.msg" "materialInfo1.m"; +connectAttr "file4.oc" "GLSLShader2.u_DiffuseEnvTexture"; +connectAttr "file5.oc" "GLSLShader2.u_SpecularEnvTexture"; +connectAttr "file6.oc" "GLSLShader2.u_brdfTexture"; +connectAttr ":defaultColorMgtGlobals.cme" "file4.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file4.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file4.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file4.ws"; +connectAttr "place2dTexture4.c" "file4.c"; +connectAttr "place2dTexture4.tf" "file4.tf"; +connectAttr "place2dTexture4.rf" "file4.rf"; +connectAttr "place2dTexture4.mu" "file4.mu"; +connectAttr "place2dTexture4.mv" "file4.mv"; +connectAttr "place2dTexture4.s" "file4.s"; +connectAttr "place2dTexture4.wu" "file4.wu"; +connectAttr "place2dTexture4.wv" "file4.wv"; +connectAttr "place2dTexture4.re" "file4.re"; +connectAttr "place2dTexture4.r" "file4.ro"; +connectAttr "place2dTexture4.of" "file4.of"; +connectAttr "place2dTexture4.n" "file4.n"; +connectAttr "place2dTexture4.vt1" "file4.vt1"; +connectAttr "place2dTexture4.vt2" "file4.vt2"; +connectAttr "place2dTexture4.vt3" "file4.vt3"; +connectAttr "place2dTexture4.vc1" "file4.vc1"; +connectAttr "place2dTexture4.o" "file4.uv"; +connectAttr "place2dTexture4.ofs" "file4.fs"; +connectAttr ":defaultColorMgtGlobals.cme" "file5.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file5.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file5.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file5.ws"; +connectAttr "place2dTexture5.c" "file5.c"; +connectAttr "place2dTexture5.tf" "file5.tf"; +connectAttr "place2dTexture5.rf" "file5.rf"; +connectAttr "place2dTexture5.mu" "file5.mu"; +connectAttr "place2dTexture5.mv" "file5.mv"; +connectAttr "place2dTexture5.s" "file5.s"; +connectAttr "place2dTexture5.wu" "file5.wu"; +connectAttr "place2dTexture5.wv" "file5.wv"; +connectAttr "place2dTexture5.re" "file5.re"; +connectAttr "place2dTexture5.r" "file5.ro"; +connectAttr "place2dTexture5.of" "file5.of"; +connectAttr "place2dTexture5.n" "file5.n"; +connectAttr "place2dTexture5.vt1" "file5.vt1"; +connectAttr "place2dTexture5.vt2" "file5.vt2"; +connectAttr "place2dTexture5.vt3" "file5.vt3"; +connectAttr "place2dTexture5.vc1" "file5.vc1"; +connectAttr "place2dTexture5.o" "file5.uv"; +connectAttr "place2dTexture5.ofs" "file5.fs"; +connectAttr ":defaultColorMgtGlobals.cme" "file6.cme"; +connectAttr ":defaultColorMgtGlobals.cfe" "file6.cmcf"; +connectAttr ":defaultColorMgtGlobals.cfp" "file6.cmcp"; +connectAttr ":defaultColorMgtGlobals.wsn" "file6.ws"; +connectAttr "place2dTexture6.c" "file6.c"; +connectAttr "place2dTexture6.tf" "file6.tf"; +connectAttr "place2dTexture6.rf" "file6.rf"; +connectAttr "place2dTexture6.mu" "file6.mu"; +connectAttr "place2dTexture6.mv" "file6.mv"; +connectAttr "place2dTexture6.s" "file6.s"; +connectAttr "place2dTexture6.wu" "file6.wu"; +connectAttr "place2dTexture6.wv" "file6.wv"; +connectAttr "place2dTexture6.re" "file6.re"; +connectAttr "place2dTexture6.r" "file6.ro"; +connectAttr "place2dTexture6.of" "file6.of"; +connectAttr "place2dTexture6.n" "file6.n"; +connectAttr "place2dTexture6.vt1" "file6.vt1"; +connectAttr "place2dTexture6.vt2" "file6.vt2"; +connectAttr "place2dTexture6.vt3" "file6.vt3"; +connectAttr "place2dTexture6.vc1" "file6.vc1"; +connectAttr "place2dTexture6.o" "file6.uv"; +connectAttr "place2dTexture6.ofs" "file6.fs"; +connectAttr "GLSLShader2.oc" "GLSLShader2SG.ss"; +connectAttr "pCubeShape2.iog" "GLSLShader2SG.dsm" -na; +connectAttr "GLSLShader2SG.msg" "materialInfo2.sg"; +connectAttr "GLSLShader2.msg" "materialInfo2.m"; +connectAttr "GLSLShader1SG.pa" ":renderPartition.st" -na; +connectAttr "GLSLShader2SG.pa" ":renderPartition.st" -na; +connectAttr "GLSLShader1.msg" ":defaultShaderList1.s" -na; +connectAttr "GLSLShader2.msg" ":defaultShaderList1.s" -na; +connectAttr "place2dTexture1.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "place2dTexture2.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "place2dTexture3.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "place2dTexture4.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "place2dTexture5.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "place2dTexture6.msg" ":defaultRenderUtilityList1.u" -na; +connectAttr "defaultRenderLayer.msg" ":defaultRenderingList1.r" -na; +connectAttr "file1.msg" ":defaultTextureList1.tx" -na; +connectAttr "file2.msg" ":defaultTextureList1.tx" -na; +connectAttr "file3.msg" ":defaultTextureList1.tx" -na; +connectAttr "file4.msg" ":defaultTextureList1.tx" -na; +connectAttr "file5.msg" ":defaultTextureList1.tx" -na; +connectAttr "file6.msg" ":defaultTextureList1.tx" -na; +// End of TranparentCube1.ma diff --git a/maya/scripts/maya2glTF_UI.mel b/maya/scripts/maya2glTF_UI.mel index 7d6487c..dba9c91 100644 --- a/maya/scripts/maya2glTF_UI.mel +++ b/maya/scripts/maya2glTF_UI.mel @@ -1,4 +1,4 @@ -proc string _quoted(string $text) +proc string _quoted(string $text) { string $quote = "\""; return $quote+$text+$quote; @@ -251,7 +251,7 @@ global proc maya2glTF_UI() global string $gMainProgressBar; // This is auto-updated by msbuild - string $maya2glTF_version = "v0.9.6-beta 49a2d6f"; + string $maya2glTF_version = "v0.9.6-beta 951aac1"; if (`window -exists maya2glTF_exporter_window`) deleteUI maya2glTF_exporter_window; diff --git a/src/ExportableAsset.cpp b/src/ExportableAsset.cpp index 93da86f..ce637cb 100644 --- a/src/ExportableAsset.cpp +++ b/src/ExportableAsset.cpp @@ -139,7 +139,7 @@ void ExportableAsset::save() const auto outputFolder = path(args.outputFolder.asChar()); create_directories(outputFolder); - const auto outputFilename = std::string(args.sceneName.asChar()) + (args.glb ? ".glb" : ".glTF"); + const auto outputFilename = std::string(args.sceneName.asChar()) + (args.glb ? ".glb" : ".gltf"); const auto outputPath = outputFolder / outputFilename; cout << prefix << "Writing glTF file to '" << outputPath << "'" << endl; diff --git a/src/ExportableMaterial.cpp b/src/ExportableMaterial.cpp index c79adf6..540f743 100644 --- a/src/ExportableMaterial.cpp +++ b/src/ExportableMaterial.cpp @@ -47,6 +47,11 @@ bool ExportableMaterial::getScalar(const MObject& obj, const char* attributeName return DagHelper::getPlugValue(obj, attributeName, scalar); } +bool ExportableMaterial::getString(const MObject& obj, const char* attributeName, MString& string) +{ + return DagHelper::getPlugValue(obj, attributeName, string); +} + bool ExportableMaterial::getColor(const MObject& obj, const char* attributeName, Float4& color) { MColor c; @@ -177,8 +182,13 @@ void ExportableMaterialPBR::loadPBR(ExportableResources& resources, const MFnDep Float4 customBaseColor = m_glBaseColorFactor; float customBaseAlpha = m_glBaseColorFactor[3]; - if (getColor(shaderObject, "u_BaseColorFactorRGB", customBaseColor) || - getScalar(shaderObject, "u_BaseColorFactorA", customBaseAlpha)) + MString technique = "solid"; + + const auto hasCustomColor = getColor(shaderObject, "u_BaseColorFactorRGB", customBaseColor); + const auto hasCustomAlpha = getScalar(shaderObject, "u_BaseColorFactorA", customBaseAlpha); + const auto hasTechnique = getString(shaderObject, "technique", technique); + + if (hasCustomColor | hasCustomAlpha) { customBaseColor[3] = customBaseAlpha; m_glBaseColorFactor = customBaseColor; @@ -186,8 +196,7 @@ void ExportableMaterialPBR::loadPBR(ExportableResources& resources, const MFnDep m_glMaterial.metallicRoughness = &m_glMetallicRoughness; } - // TODO: Add transparency texture to our shader! - if (m_glBaseColorFactor[3] != 1) + if (hasTechnique && technique.toLowerCase() == "transparent") { m_glMaterial.alphaMode = "BLEND"; } diff --git a/src/ExportableMaterial.h b/src/ExportableMaterial.h index 335af5a..2cb4cfa 100644 --- a/src/ExportableMaterial.h +++ b/src/ExportableMaterial.h @@ -24,6 +24,7 @@ class ExportableMaterial static bool getScalar(const MObject& shaderObject, const char* attributeName, float& scalar); static bool getColor(const MObject& shaderObject, const char* attributeName, Float4& color); + static bool getString(const MObject& shaderObject, const char* attributeName, MString& string); private: DISALLOW_COPY_MOVE_ASSIGN(ExportableMaterial); diff --git a/src/version.cpp b/src/version.cpp index 549358b..b01c19c 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -1,3 +1,3 @@ #include "externals.h" -const char* version = "v0.9.6-beta 49a2d6f"; +const char* version = "v0.9.6-beta 951aac1";