diff --git a/addons/material_maker/nodes/material.mmg b/addons/material_maker/nodes/material.mmg index 8470ce7ad..d8d944887 100644 --- a/addons/material_maker/nodes/material.mmg +++ b/addons/material_maker/nodes/material.mmg @@ -1991,6 +1991,877 @@ ], "uids": 5 }, + "Unity/URP": { + "export_extension": "mat", + "files": [ + { + "conditions": "$(connected:albedo_tex)", + "file_name": "$(path_prefix)_albedo.png", + "output": 0, + "type": "texture" + }, + { + "conditions": "$(connected:albedo_tex)", + "file_name": "$(path_prefix)_albedo.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(0)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + "\tmipMapMode: 0", + "\tenableMipMap: 1", + "\tsRGBTexture: 1", + "\tlinearTexture: 0", + "\tfadeOut: 0", + "\tborderMipMap: 0", + "\tmipMapsPreserveCoverage: 0", + "\talphaTestReferenceValue: 0.5", + "\tmipMapFadeDistanceStart: 1", + "\tmipMapFadeDistanceEnd: 3", + " bumpmap:", + "\tconvertToNormalMap: 0", + "\texternalNormalMap: 0", + "\theightScale: 0.25", + "\tnormalMapFilter: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + "\tserializedVersion: 2", + "\tfilterMode: -1", + "\taniso: -1", + "\tmipBias: -100", + "\twrapU: -1", + "\twrapV: -1", + "\twrapW: -1", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 0", + " textureShape: 1", + " singleChannelComponent: 0", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " platformSettings:", + " - serializedVersion: 3", + " buildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + "\tserializedVersion: 2", + "\tsprites: []", + "\toutline: []", + "\tphysicsShape: []", + "\tbones: []", + "\tspriteID: ", + "\tinternalID: 0", + "\tvertices: []", + "\tindices: ", + "\tedges: []", + "\tweights: []", + "\tsecondaryTextures: []", + " spritePackingTag: ", + " pSDRemoveMatte: 0", + " pSDShowRemoveMatteOption: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: ", + "" + ], + "type": "template" + }, + { + "conditions": "$(connected:roughness_tex) or $(connected:metallic_tex)", + "file_name": "$(path_prefix)_metal_smoothness.png", + "output": 6, + "type": "texture" + }, + { + "conditions": "$(connected:roughness_tex) or $(connected:metallic_tex)", + "file_name": "$(path_prefix)_metal_smoothness.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(1)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + "\tmipMapMode: 0", + "\tenableMipMap: 1", + "\tsRGBTexture: 1", + "\tlinearTexture: 0", + "\tfadeOut: 0", + "\tborderMipMap: 0", + "\tmipMapsPreserveCoverage: 0", + "\talphaTestReferenceValue: 0.5", + "\tmipMapFadeDistanceStart: 1", + "\tmipMapFadeDistanceEnd: 3", + " bumpmap:", + "\tconvertToNormalMap: 0", + "\texternalNormalMap: 0", + "\theightScale: 0.25", + "\tnormalMapFilter: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + "\tserializedVersion: 2", + "\tfilterMode: -1", + "\taniso: -1", + "\tmipBias: -100", + "\twrapU: -1", + "\twrapV: -1", + "\twrapW: -1", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 0", + " textureShape: 1", + " singleChannelComponent: 0", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " platformSettings:", + " - serializedVersion: 3", + " buildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + "\tserializedVersion: 2", + "\tsprites: []", + "\toutline: []", + "\tphysicsShape: []", + "\tbones: []", + "\tspriteID: ", + "\tinternalID: 0", + "\tvertices: []", + "\tindices: ", + "\tedges: []", + "\tweights: []", + "\tsecondaryTextures: []", + " spritePackingTag: ", + " pSDRemoveMatte: 0", + " pSDShowRemoveMatteOption: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: ", + "" + ], + "type": "template" + }, + { + "conditions": "$(connected:normal_tex)", + "file_name": "$(path_prefix)_normal.png", + "output": 7, + "type": "texture" + }, + { + "conditions": "$(connected:normal_tex)", + "file_name": "$(path_prefix)_normal.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(2)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + " mipMapMode: 0", + " enableMipMap: 1", + " sRGBTexture: 0", + " linearTexture: 0", + " fadeOut: 0", + " borderMipMap: 0", + " mipMapsPreserveCoverage: 0", + " alphaTestReferenceValue: 0.5", + " mipMapFadeDistanceStart: 1", + " mipMapFadeDistanceEnd: 3", + " bumpmap:", + " convertToNormalMap: 0", + " externalNormalMap: 0", + " heightScale: 0.25", + " normalMapFilter: 0", + " flipGreenChannel: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " vTOnly: 0", + " ignoreMipmapLimit: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + " serializedVersion: 2", + " filterMode: 1", + " aniso: 1", + " mipBias: 0", + " wrapU: 0", + " wrapV: 0", + " wrapW: 0", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 1", + " textureShape: 1", + " singleChannelComponent: 0", + " flipbookRows: 1", + " flipbookColumns: 1", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " ignorePngGamma: 0", + " applyGammaDecoding: 1", + " swizzle: 50462976", + " cookieLightType: 1", + " platformSettings:", + " - serializedVersion: 3", + " buildTarget: DefaultTexturePlatform", + " maxTextureSize: 2048", + " resizeAlgorithm: 0", + " textureFormat: -1", + " textureCompression: 1", + " compressionQuality: 50", + " crunchedCompression: 0", + " allowsAlphaSplitting: 0", + " overridden: 0", + " ignorePlatformSupport: 0", + " androidETC2FallbackOverride: 0", + " forceMaximumCompressionQuality_BC6H_BC7: 0", + " - serializedVersion: 3", + " buildTarget: Standalone", + " maxTextureSize: 2048", + " resizeAlgorithm: 0", + " textureFormat: -1", + " textureCompression: 1", + " compressionQuality: 50", + " crunchedCompression: 0", + " allowsAlphaSplitting: 0", + " overridden: 0", + " ignorePlatformSupport: 0", + " androidETC2FallbackOverride: 0", + "forceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + " serializedVersion: 2", + " sprites: []", + " outline: []", + " physicsShape: []", + " bones: []", + " spriteID: ", + " internalID: 0", + " vertices: []", + " indices: ", + " edges: []", + " weights: []", + " secondaryTextures: []", + " nameFileIdTable: {}", + " mipmapLimitGroupName: ", + " pSDRemoveMatte: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: " + ], + "type": "template" + }, + { + "conditions": "$(connected:depth_tex)", + "file_name": "$(path_prefix)_height.png", + "output": 8, + "type": "texture" + }, + { + "conditions": "$(connected:depth_tex)", + "file_name": "$(path_prefix)_height.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(3)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + "\tmipMapMode: 0", + "\tenableMipMap: 1", + "\tsRGBTexture: 1", + "\tlinearTexture: 0", + "\tfadeOut: 0", + "\tborderMipMap: 0", + "\tmipMapsPreserveCoverage: 0", + "\talphaTestReferenceValue: 0.5", + "\tmipMapFadeDistanceStart: 1", + "\tmipMapFadeDistanceEnd: 3", + " bumpmap:", + "\tconvertToNormalMap: 0", + "\texternalNormalMap: 0", + "\theightScale: 0.25", + "\tnormalMapFilter: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + "\tserializedVersion: 2", + "\tfilterMode: -1", + "\taniso: -1", + "\tmipBias: -100", + "\twrapU: -1", + "\twrapV: -1", + "\twrapW: -1", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 0", + " textureShape: 1", + " singleChannelComponent: 0", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " platformSettings:", + " - serializedVersion: 3", + "\tbuildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + "\tserializedVersion: 2", + "\tsprites: []", + "\toutline: []", + "\tphysicsShape: []", + "\tbones: []", + "\tspriteID: ", + "\tinternalID: 0", + "\tvertices: []", + "\tindices: ", + "\tedges: []", + "\tweights: []", + "\tsecondaryTextures: []", + " spritePackingTag: ", + " pSDRemoveMatte: 0", + " pSDShowRemoveMatteOption: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: ", + "" + ], + "type": "template" + }, + { + "conditions": "$(connected:ao_tex)", + "file_name": "$(path_prefix)_occlusion.png", + "output": 9, + "type": "texture" + }, + { + "conditions": "$(connected:ao_tex)", + "file_name": "$(path_prefix)_occlusion.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(4)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + "\tmipMapMode: 0", + "\tenableMipMap: 1", + "\tsRGBTexture: 1", + "\tlinearTexture: 0", + "\tfadeOut: 0", + "\tborderMipMap: 0", + "\tmipMapsPreserveCoverage: 0", + "\talphaTestReferenceValue: 0.5", + "\tmipMapFadeDistanceStart: 1", + "\tmipMapFadeDistanceEnd: 3", + " bumpmap:", + "\tconvertToNormalMap: 0", + "\texternalNormalMap: 0", + "\theightScale: 0.25", + "\tnormalMapFilter: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + "\tserializedVersion: 2", + "\tfilterMode: -1", + "\taniso: -1", + "\tmipBias: -100", + "\twrapU: -1", + "\twrapV: -1", + "\twrapW: -1", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 0", + " textureShape: 1", + " singleChannelComponent: 0", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " platformSettings:", + " - serializedVersion: 3", + "\tbuildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + "\tserializedVersion: 2", + "\tsprites: []", + "\toutline: []", + "\tphysicsShape: []", + "\tbones: []", + "\tspriteID: ", + "\tinternalID: 0", + "\tvertices: []", + "\tindices: ", + "\tedges: []", + "\tweights: []", + "\tsecondaryTextures: []", + " spritePackingTag: ", + " pSDRemoveMatte: 0", + " pSDShowRemoveMatteOption: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: ", + "" + ], + "type": "template" + }, + { + "conditions": "$(connected:emission_tex)", + "file_name": "$(path_prefix)_emission.png", + "output": 2, + "type": "texture" + }, + { + "conditions": "$(connected:emission_tex)", + "file_name": "$(path_prefix)_emission.png.meta", + "prompt_overwrite": true, + "template": [ + "fileFormatVersion: 2", + "guid: $uid(5)", + "TextureImporter:", + " internalIDToNameTable: []", + " externalObjects: {}", + " serializedVersion: 10", + " mipmaps:", + "\tmipMapMode: 0", + "\tenableMipMap: 1", + "\tsRGBTexture: 1", + "\tlinearTexture: 0", + "\tfadeOut: 0", + "\tborderMipMap: 0", + "\tmipMapsPreserveCoverage: 0", + "\talphaTestReferenceValue: 0.5", + "\tmipMapFadeDistanceStart: 1", + "\tmipMapFadeDistanceEnd: 3", + " bumpmap:", + "\tconvertToNormalMap: 0", + "\texternalNormalMap: 0", + "\theightScale: 0.25", + "\tnormalMapFilter: 0", + "\tflipGreenChannel: 0", + " isReadable: 0", + " streamingMipmaps: 0", + " streamingMipmapsPriority: 0", + " vTOnly: 0", + " ignoreMipmapLimit: 0", + " grayScaleToAlpha: 0", + " generateCubemap: 6", + " cubemapConvolution: 0", + " seamlessCubemap: 0", + " textureFormat: 1", + " maxTextureSize: 2048", + " textureSettings:", + "\tserializedVersion: 2", + "\tfilterMode: 1", + "\taniso: 1", + "\tmipBias: 0", + "\twrapU: 0", + "\twrapV: 0", + "\twrapW: 0", + " nPOTScale: 1", + " lightmap: 0", + " compressionQuality: 50", + " spriteMode: 0", + " spriteExtrude: 1", + " spriteMeshType: 1", + " alignment: 0", + " spritePivot: {x: 0.5, y: 0.5}", + " spritePixelsToUnits: 100", + " spriteBorder: {x: 0, y: 0, z: 0, w: 0}", + " spriteGenerateFallbackPhysicsShape: 1", + " alphaUsage: 1", + " alphaIsTransparency: 0", + " spriteTessellationDetail: -1", + " textureType: 0", + " textureShape: 1", + " singleChannelComponent: 0", + " flipbookRows: 1", + " flipbookColumns: 1", + " maxTextureSizeSet: 0", + " compressionQualitySet: 0", + " textureFormatSet: 0", + " ignorePngGamma: 0", + " applyGammaDecoding: 1", + " swizzle: 50462976", + " cookieLightType: 1", + " platformSettings:", + " - serializedVersion: 3", + "\tbuildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tignorePlatformSupport: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " - serializedVersion: 3", + "\tbuildTarget: DefaultTexturePlatform", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 0", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tignorePlatformSupport: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " - serializedVersion: 3", + "\tbuildTarget: Standalone", + "\tmaxTextureSize: 2048", + "\tresizeAlgorithm: 0", + "\ttextureFormat: -1", + "\ttextureCompression: 1", + "\tcompressionQuality: 50", + "\tcrunchedCompression: 0", + "\tallowsAlphaSplitting: 0", + "\toverridden: 0", + "\tignorePlatformSupport: 0", + "\tandroidETC2FallbackOverride: 0", + "\tforceMaximumCompressionQuality_BC6H_BC7: 0", + " spriteSheet:", + "\tserializedVersion: 2", + "\tsprites: []", + "\toutline: []", + "\tphysicsShape: []", + "\tbones: []", + "\tspriteID: ", + "\tinternalID: 0", + "\tvertices: []", + "\tindices: ", + "\tedges: []", + "\tweights: []", + "\tsecondaryTextures: []", + "\tnameFileIdTable: {}", + " mipmapLimitGroupName: ", + " pSDRemoveMatte: 0", + " userData: ", + " assetBundleName: ", + " assetBundleVariant: ", + "" + ], + "type": "template" + }, + { + "file_name": "$(path_prefix).mat", + "prompt_overwrite": true, + "template": [ + "%YAML 1.1", + "%TAG !u! tag:unity3d.com,2011:", + "--- !u!114 &-486273074595757742", + "MonoBehaviour:", + " m_ObjectHideFlags: 11", + " m_CorrespondingSourceObject: {fileID: 0}", + " m_PrefabInstance: {fileID: 0}", + " m_PrefabAsset: {fileID: 0}", + " m_GameObject: {fileID: 0}", + " m_Enabled: 1", + " m_EditorHideFlags: 0", + " m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}", + " m_Name: ", + " m_EditorClassIdentifier: ", + " version: 7", + "--- !u!21 &2100000", + "Material:", + " serializedVersion: 8", + " m_ObjectHideFlags: 0", + " m_CorrespondingSourceObject: {fileID: 0}", + " m_PrefabInstance: {fileID: 0}", + " m_PrefabAsset: {fileID: 0}", + " m_Name: $(file_prefix)", + " m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}", + " m_Parent: {fileID: 0}", + " m_ModifiedSerializedProperties: 0", + " m_ValidKeywords:", + " - _NORMALMAP", + " - _PARALLAXMAP", + " - _METALLICSPECGLOSSMAP", + "$if $(connected:emission_tex)", + " m_LightmapFlags: 0", + "$else", + " m_LightmapFlags: 4", + "$fi", + " m_EnableInstancingVariants: 0", + " m_DoubleSidedGI: 0", + " m_CustomRenderQueue: -1", + " stringTagMap:", + " RenderType: Opaque", + " disabledShaderPasses: []", + " m_LockedProperties: ", + " m_SavedProperties:", + " serializedVersion: 3", + " m_TexEnvs:", + " - _BaseMap:", + "$if $(connected:albedo_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(0), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _BumpMap:", + "$if $(connected:normal_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(2), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _DetailAlbedoMap:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _DetailMask:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _DetailNormalMap:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _EmissionMap:", + "$if $(connected:emission_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(5), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _MainTex:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _MetallicGlossMap:", + "$if $(connected:roughness_tex) or $(connected:metallic_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(1), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _OcclusionMap:", + "$if $(connected:ao_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(4), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _ParallaxMap:", + "$if $(connected:depth_tex)", + " m_Texture: {fileID: 2800000, guid: $uid(3), type: 3}", + "$else", + " m_Texture: {fileID: 0}", + "$fi", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - _SpecGlossMap:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - unity_Lightmaps:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - unity_LightmapsInd:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " - unity_ShadowMasks:", + " m_Texture: {fileID: 0}", + " m_Scale: {x: 1, y: 1}", + " m_Offset: {x: 0, y: 0}", + " m_Ints: []", + " m_Floats:", + " - _AlphaClip: 0", + " - _AlphaToMask: 0", + " - _Blend: 0", + " - _BlendModePreserveSpecular: 1", + " - _BumpScale: $(param:normal)", + " - _ClearCoatMask: 0", + " - _ClearCoatSmoothness: 0", + " - _Cull: 2", + " - _Cutoff: 0.5", + " - _DetailAlbedoMapScale: 1", + " - _DetailNormalMapScale: 1", + " - _DstBlend: 0", + " - _DstBlendAlpha: 0", + " - _EnvironmentReflections: 1", + " - _GlossMapScale: 0", + " - _Glossiness: 0", + " - _GlossyReflections: 0", + " - _Metallic: 0", + " - _OcclusionStrength: $(param:ao)", + " - _Parallax: $(expr:0.005+(0.08-0.005)*$(param:depth_scale))", + " - _QueueOffset: 0", + " - _ReceiveShadows: 1", + " - _Smoothness: $(param:roughness))", + " - _SmoothnessTextureChannel: 0", + " - _SpecularHighlights: 1", + " - _SrcBlend: 1", + " - _SrcBlendAlpha: 1", + " - _Surface: 0", + " - _WorkflowMode: 1", + " - _ZWrite: 1", + " m_Colors:", + " - _BaseColor: {r: 1, g: 1, b: 1, a: 1}", + " - _Color: {r: 1, g: 1, b: 1, a: 1}", + " - _EmissionColor: {r: $(param:emission_energy), g: $(param:emission_energy), b: $(param:emission_energy), a: 1}", + " - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}", + " m_BuildTextureStacks: []", + "" + ], + "type": "template" + } + ], + "uids": 6 + }, "Unreal/Unreal Engine 4": { "export_extension": "mm2ue", "files": [