public BabylonPBRMaterial(BabylonPBRBaseSimpleMaterial origin) : base(origin.id) { SetCustomType("BABYLON.PBRMaterial"); directIntensity = 1.0f; emissiveIntensity = 1.0f; environmentIntensity = 1.0f; specularIntensity = 1.0f; cameraExposure = 1.0f; cameraContrast = 1.0f; useRadianceOverAlpha = true; useSpecularOverAlpha = true; usePhysicalLightFalloff = true; useEmissiveAsIllumination = true; ambient = new[] { 0f, 0f, 0f }; reflectivity = new[] { 1f, 1f, 1f }; reflection = new[] { 1f, 1f, 1f }; albedoTexture = origin.baseTexture; alpha = origin.alpha; alphaCutOff = origin.alphaCutOff; alphaMode = origin.alphaMode; backFaceCulling = origin.backFaceCulling; albedo = origin.baseColor; albedoTexture = origin.baseTexture; clearCoat = origin.clearCoat; disableLighting = origin.disableLighting; twoSidedLighting = origin.doubleSided; emissive = origin.emissive; emissiveTexture = origin.emissiveTexture; invertNormalMapX = origin.invertNormalMapX; invertNormalMapY = origin.invertNormalMapY; isUnlit = origin.isUnlit; maxSimultaneousLights = origin.maxSimultaneousLights; name = origin.name; bumpTexture = origin.normalTexture; ambientTextureStrength = origin.occlusionStrength; ambientTexture = origin.occlusionTexture; transparencyMode = origin.transparencyMode; wireframe = origin.wireframe; }
public BabylonPBRBaseSimpleMaterial(BabylonPBRBaseSimpleMaterial original) : base(original) { customType = original.customType; baseColor = original.baseColor; baseTexture = original.baseTexture; maxSimultaneousLights = original.maxSimultaneousLights; disableLighting = original.disableLighting; invertNormalMapX = original.invertNormalMapX; invertNormalMapY = original.invertNormalMapY; normalTexture = original.normalTexture; emissive = original.emissive; emissiveTexture = original.emissiveTexture; occlusionStrength = original.occlusionStrength; occlusionTexture = original.occlusionTexture; alphaCutOff = original.alphaCutOff; transparencyMode = original.transparencyMode; doubleSided = original.doubleSided; clearCoat = original.clearCoat; _unlit = original._unlit; }