// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // // Creation Date: May 16, 1997 // // Procedure Name: // AEphongTemplate // // Description Name; // Creates the attribute editor controls for the phong Node // // Input Value: // nodeName // // Output Value: // None // global proc AEphongTemplate ( string $nodeName ) { AEswatchDisplay $nodeName; editorTemplate -beginScrollLayout; AElambertCommon $nodeName; editorTemplate -beginLayout (uiRes("m_AEphongTemplate.kSpecularShading")) -collapse 0; editorTemplate -addControl "cosinePower"; // include/call base class/node attributes AEreflectCommonSpecularShading $nodeName; editorTemplate -endLayout; // include/call base class/node attributes AEreflectCommon $nodeName; if(isLegacyViewportEnabled()) { // // Add the Hardware texture section only if the user enable the legacy viewport // editorTemplate -beginLayout (uiRes("m_AEphongTemplate.kHardwareTexturing")) -collapse true; AEhardwareTextureTemplate $nodeName ("color transparency ambientColor incandescence "+ "normalCamera diffuse translucence cosinePower "+ "specularColor reflectivity reflectedColor"); editorTemplate -endLayout; } editorTemplate -addExtraControls; editorTemplate -endScrollLayout; }