

GUISingleFeature ( "DETAIL_TEX ", "Detail Texture " ) GUISingleFeature ( "TEXTURED_THRESHOLD ", "Textured Threshold ", "Adds a textured variation to the highlight/shadow threshold, allowing handpainting like effects for example " ) GUIMultipleFeatures ( "Ramp Style ", "Defines the transitioning between dark and lit areas of the model ", "Slider Ramp| ", "Texture Ramp|TEXTURE_RAMP " ) GUISingleFeature ( "VERTEX_FUNC ", "Vertex Function ", "Force custom vertex function in surface shader " ) GUISingleFeature ( "CUSTOM_LIGHTING_FORCE ", "Custom Lighting ", "Use an inline custom lighting model, allowing more flexibility per shader over lighting " ) TextField ( "File Name ", mCurrentConfig.
UNITY TOONY COLORS PRO 2 HOW TO
TextField ( new GUIContent ( "Shader Name ", "Path will indicate how to find the Shader in Unity's drop-down list " ), mCurrentConfig. ObjectField ( "Template: ", Template, typeof ( TextAsset ), false ) as TextAsset LoadCurrentConfigFromShader (mCurrentShader ) \n \nDiscard the changes and load a new shader? ", "Yes ", "No " ) DisplayDialog ( "TCP2 : Shader Generation ", "You have unsaved changes. name + " \n \nDiscard the changes and load a new shader? ", "Yes ", "No " ) DisplayDialog ( "TCP2 : Shader Generation ", "You have unsaved changes for the following shader: \n \n " + mCurrentShader. EndChangeCheck ( ) & prevChoice != mConfigChoice ) Popup ( "Load Shader: ", mConfigChoice, mUserShadersLabels. If ( ( mConfigChoice - 1 ) > 0 & ( mConfigChoice - 1 ) 0 ) If ( mUserShaders != null & mUserShaders. Private bool HasFeatAnd ( params string features ) Private bool HasFeatOr ( params string features ) LoadAssetAtPath ( "Assets/JMO Assets/Toony Colors Pro/Editor/Shader Templates/TCP2_User.txt ", typeof ( TextAsset ) ) as TextAsset LoadAssetAtPath ( "Assets/JMO Assets/Toony Colors Pro/Editor/Shader Templates/TCP2_User_Unity5.txt ", typeof ( TextAsset ) ) as TextAsset
UNITY TOONY COLORS PRO 2 GENERATOR
GetWindow ( true, "TCP2 : Shader Generator ", true ) TCP2_ShaderGenerator window = EditorWindow. Static private TCP2_ShaderGenerator GetWindowTCP2 ( ) TCP2_ShaderGenerator shaderGenerator = GetWindowTCP2 ( ) Static public void OpenWithShader ( Shader shader ) Public class TCP2_ShaderGenerator : EditorWindow Utility to generate custom Toony Colors Pro 2 shaders with specific features
