// =========================================================================== // 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: // AEphongETemplate // // Description Name; // Creates the attribute editor controls for the phongE Node // // Input Value: // nodeName // // Output Value: // None // global proc AEphongETemplate ( string $nodeName ) { AEswatchDisplay $nodeName; editorTemplate -beginScrollLayout; AElambertCommon $nodeName; editorTemplate -beginLayout (uiRes("m_AEphongETemplate.kSpecularShading")) -collapse 0; editorTemplate -addControl "roughness"; editorTemplate -addControl "highlightSize"; editorTemplate -addControl "whiteness"; // 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_AEphongETemplate.kHardwareTexturing")) -collapse true; AEhardwareTextureTemplate $nodeName ("color transparency ambientColor incandescence "+ "normalCamera diffuse translucence "+ "roughness highlightSize whiteness reflectedColor "+ "specularColor reflectivity reflectedColor"); editorTemplate -endLayout; } editorTemplate -addExtraControls; editorTemplate -endScrollLayout; }