Пример #1
0
        public void Initialize()
        {
            _shaderName     = _shaderName ?? "MyShader";
            _shaderFallback = _shaderFallback ?? "Diffuse";

            //Fog settings
            _fogModeOverride    = _fogModeOverride ?? false;
            _fogColorOverride   = _fogColorOverride ?? false;
            _fogColor           = _fogColor ?? new Color(1.0f, 1.0f, 1.0f, 1.0f);
            _fogDensityOverride = _fogDensityOverride ?? false;
            _fogDensity         = _fogDensity ?? 0.5f;
            _fogNearLinear      = _fogNearLinear ?? 0.0f;
            _fogFarLinear       = _fogFarLinear ?? 1.0f;

            //RenderType
            _renderTypeCustom = _renderTypeCustom ?? new EditorString();

            _queueAdjust      = _queueAdjust ?? 0;
            _enableLOD        = _enableLOD ?? false;
            _lod              = _lod ?? 100;
            _ignoreProjectors = _ignoreProjectors ?? false;

            //ColorMask
            _colorMaskR = _colorMaskR ?? true;
            _colorMaskG = _colorMaskG ?? true;
            _colorMaskB = _colorMaskB ?? true;
            _colorMaskA = _colorMaskA ?? true;

            _dualForward        = _dualForward ?? false;
            _fullForwardShadows = _fullForwardShadows ?? false;
            _softVegetation     = _softVegetation ?? false;
            _noAmbient          = _noAmbient ?? false;
            _noLightmap         = _noLightmap ?? false;
            _approxview         = _approxview ?? false;
            _halfasview         = _halfasview ?? false;
            _noForwardAdd       = _noForwardAdd ?? false;
            _addShadow          = _addShadow ?? false;
        }
Пример #2
0
		public void Initialize()
		{
			_shaderName = _shaderName ?? "";
			_shaderFallback = _shaderFallback ?? "Diffuse";
			
			//Fog settings
			_fogModeOverride = _fogModeOverride ?? false;
			_fogColorOverride = _fogColorOverride ?? false;
			_fogColor = _fogColor ?? new Color( 1.0f, 1.0f, 1.0f, 1.0f);
			_fogDensityOverride = _fogDensityOverride ?? false;
			_fogDensity = _fogDensity ?? 0.5f;
			_fogNearLinear = _fogNearLinear ?? 0.0f;
			_fogFarLinear = _fogFarLinear ?? 1.0f;
			
			//RenderType
			_renderTypeCustom = _renderTypeCustom ?? new EditorString();
			
			_queueAdjust = _queueAdjust ?? 0;
			_enableLOD = _enableLOD ?? false;
			_lod = _lod ?? 100;
			_ignoreProjectors = _ignoreProjectors ?? false;
			
			//ColorMask
			_colorMaskR = _colorMaskR ?? true;
			_colorMaskG = _colorMaskG ?? true;
			_colorMaskB = _colorMaskB ?? true;
			_colorMaskA = _colorMaskA ?? true;
			
			_dualForward = _dualForward ?? false;
			_fullForwardShadows = _fullForwardShadows ?? false;
			_softVegetation = _softVegetation ?? false;
			_noAmbient = _noAmbient ?? false;
			_noLightmap = _noLightmap ?? false;
			_approxview = _approxview ?? false;
			_halfasview = _halfasview ?? false;
			_noForwardAdd = _noForwardAdd ?? false;
			_addShadow = _addShadow ?? false;
		}
Пример #3
0
 public void DrawCommentField()
 {
     GUILayout.Label("Comment");
     // Instead of NormalGUILayout for copy/paste etc
     _comment = GUILayout.TextArea(Comment);              // Texel Modified to text field, so it expands as needed.
 }
Пример #4
0
 public void DrawCommentField()
 {
     GUILayout.Label ("Comment");
     // Instead of NormalGUILayout for copy/paste etc
     _comment = GUILayout.TextArea (Comment); // Texel Modified to text field, so it expands as needed.
 }
Пример #5
0
 public override void DrawProperties()
 {
     base.DrawProperties();
     GUILayout.Label("Content");
     _title = GUILayout.TextArea(_title);
 }
Пример #6
0
 public override sealed void Initialize()
 {
     _title = _title ?? "Comment";
 }
Пример #7
0
 public override sealed void Initialize()
 {
     _title = _title ?? "Comment";
 }
Пример #8
0
 public override void DrawProperties()
 {
     base.DrawProperties();
     GUILayout.Label( "Content" );
     _title = GUILayout.TextArea( _title );
 }