< Summary

Class:DCL.ECSComponents.MaterialReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Material.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:1667
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
MaterialReflection()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Material.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/material.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/sdk/components/material.proto</summary>
 15  public static partial class MaterialReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/material.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static MaterialReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CipkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvbWF0ZXJpYWwucHJvdG8S",
 28            "G2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5kL2Nv",
 29            "bW1vbi9jb2xvcnMucHJvdG8aIWRlY2VudHJhbGFuZC9jb21tb24vdGV4dHVy",
 30            "ZS5wcm90byLdCgoKUEJNYXRlcmlhbBJGCgV1bmxpdBgBIAEoCzI1LmRlY2Vu",
 31            "dHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQk1hdGVyaWFsLlVubGl0TWF0ZXJp",
 32            "YWxIABJCCgNwYnIYAiABKAsyMy5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVu",
 33            "dHMuUEJNYXRlcmlhbC5QYnJNYXRlcmlhbEgAGqgBCg1VbmxpdE1hdGVyaWFs",
 34            "EjcKB3RleHR1cmUYASABKAsyIS5kZWNlbnRyYWxhbmQuY29tbW9uLlRleHR1",
 35            "cmVVbmlvbkgAiAEBEhcKCmFscGhhX3Rlc3QYAiABKAJIAYgBARIZCgxjYXN0",
 36            "X3NoYWRvd3MYAyABKAhIAogBAUIKCghfdGV4dHVyZUINCgtfYWxwaGFfdGVz",
 37            "dEIPCg1fY2FzdF9zaGFkb3dzGosICgtQYnJNYXRlcmlhbBI3Cgd0ZXh0dXJl",
 38            "GAEgASgLMiEuZGVjZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlVW5pb25IAIgB",
 39            "ARIXCgphbHBoYV90ZXN0GAIgASgCSAGIAQESGQoMY2FzdF9zaGFkb3dzGAMg",
 40            "ASgISAKIAQESPQoNYWxwaGFfdGV4dHVyZRgEIAEoCzIhLmRlY2VudHJhbGFu",
 41            "ZC5jb21tb24uVGV4dHVyZVVuaW9uSAOIAQESQAoQZW1pc3NpdmVfdGV4dHVy",
 42            "ZRgFIAEoCzIhLmRlY2VudHJhbGFuZC5jb21tb24uVGV4dHVyZVVuaW9uSASI",
 43            "AQESPAoMYnVtcF90ZXh0dXJlGAYgASgLMiEuZGVjZW50cmFsYW5kLmNvbW1v",
 44            "bi5UZXh0dXJlVW5pb25IBYgBARI2CgxhbGJlZG9fY29sb3IYByABKAsyGy5k",
 45            "ZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9yNEgGiAEBEjgKDmVtaXNzaXZlX2Nv",
 46            "bG9yGAggASgLMhsuZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjNIB4gBARI8",
 47            "ChJyZWZsZWN0aXZpdHlfY29sb3IYCSABKAsyGy5kZWNlbnRyYWxhbmQuY29t",
 48            "bW9uLkNvbG9yM0gIiAEBElUKEXRyYW5zcGFyZW5jeV9tb2RlGAogASgOMjUu",
 49            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLk1hdGVyaWFsVHJhbnNwYXJl",
 50            "bmN5TW9kZUgJiAEBEhUKCG1ldGFsbGljGAsgASgCSAqIAQESFgoJcm91Z2hu",
 51            "ZXNzGAwgASgCSAuIAQESFwoKZ2xvc3NpbmVzcxgNIAEoAkgMiAEBEh8KEnNw",
 52            "ZWN1bGFyX2ludGVuc2l0eRgOIAEoAkgNiAEBEh8KEmVtaXNzaXZlX2ludGVu",
 53            "c2l0eRgPIAEoAkgOiAEBEh0KEGRpcmVjdF9pbnRlbnNpdHkYECABKAJID4gB",
 54            "AUIKCghfdGV4dHVyZUINCgtfYWxwaGFfdGVzdEIPCg1fY2FzdF9zaGFkb3dz",
 55            "QhAKDl9hbHBoYV90ZXh0dXJlQhMKEV9lbWlzc2l2ZV90ZXh0dXJlQg8KDV9i",
 56            "dW1wX3RleHR1cmVCDwoNX2FsYmVkb19jb2xvckIRCg9fZW1pc3NpdmVfY29s",
 57            "b3JCFQoTX3JlZmxlY3Rpdml0eV9jb2xvckIUChJfdHJhbnNwYXJlbmN5X21v",
 58            "ZGVCCwoJX21ldGFsbGljQgwKCl9yb3VnaG5lc3NCDQoLX2dsb3NzaW5lc3NC",
 59            "FQoTX3NwZWN1bGFyX2ludGVuc2l0eUIVChNfZW1pc3NpdmVfaW50ZW5zaXR5",
 60            "QhMKEV9kaXJlY3RfaW50ZW5zaXR5QgoKCG1hdGVyaWFsKoUBChhNYXRlcmlh",
 61            "bFRyYW5zcGFyZW5jeU1vZGUSDgoKTVRNX09QQVFVRRAAEhIKDk1UTV9BTFBI",
 62            "QV9URVNUEAESEwoPTVRNX0FMUEhBX0JMRU5EEAISIgoeTVRNX0FMUEhBX1RF",
 63            "U1RfQU5EX0FMUEhBX0JMRU5EEAMSDAoITVRNX0FVVE8QBEIUqgIRRENMLkVD",
 64            "U0NvbXBvbmVudHNiBnByb3RvMw=="));
 065      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 66          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::Decentraland.Comm
 67          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.MaterialTransparencyMode), }, null, new 
 68            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate
 69            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial), global::DCL.EC
 70          }));
 071    }
 72    #endregion
 73
 74  }
 75  #region Enums
 76  public enum MaterialTransparencyMode {
 77    [pbr::OriginalName("MTM_OPAQUE")] MtmOpaque = 0,
 78    [pbr::OriginalName("MTM_ALPHA_TEST")] MtmAlphaTest = 1,
 79    [pbr::OriginalName("MTM_ALPHA_BLEND")] MtmAlphaBlend = 2,
 80    [pbr::OriginalName("MTM_ALPHA_TEST_AND_ALPHA_BLEND")] MtmAlphaTestAndAlphaBlend = 3,
 81    [pbr::OriginalName("MTM_AUTO")] MtmAuto = 4,
 82  }
 83
 84  #endregion
 85
 86  #region Messages
 87  public sealed partial class PBMaterial : pb::IMessage<PBMaterial>
 88  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 89      , pb::IBufferMessage
 90  #endif
 91  {
 92    private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri
 93    private pb::UnknownFieldSet _unknownFields;
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } }
 97
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public static pbr::MessageDescriptor Descriptor {
 101      get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; }
 102    }
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    pbr::MessageDescriptor pb::IMessage.Descriptor {
 107      get { return Descriptor; }
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public PBMaterial() {
 113      OnConstruction();
 114    }
 115
 116    partial void OnConstruction();
 117
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public PBMaterial(PBMaterial other) : this() {
 121      switch (other.MaterialCase) {
 122        case MaterialOneofCase.Unlit:
 123          Unlit = other.Unlit.Clone();
 124          break;
 125        case MaterialOneofCase.Pbr:
 126          Pbr = other.Pbr.Clone();
 127          break;
 128      }
 129
 130      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 131    }
 132
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public PBMaterial Clone() {
 136      return new PBMaterial(this);
 137    }
 138
 139    /// <summary>Field number for the "unlit" field.</summary>
 140    public const int UnlitFieldNumber = 1;
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial Unlit {
 144      get { return materialCase_ == MaterialOneofCase.Unlit ? (global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial)
 145      set {
 146        material_ = value;
 147        materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Unlit;
 148      }
 149    }
 150
 151    /// <summary>Field number for the "pbr" field.</summary>
 152    public const int PbrFieldNumber = 2;
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial Pbr {
 156      get { return materialCase_ == MaterialOneofCase.Pbr ? (global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial) mat
 157      set {
 158        material_ = value;
 159        materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Pbr;
 160      }
 161    }
 162
 163    private object material_;
 164    /// <summary>Enum of possible cases for the "material" oneof.</summary>
 165    public enum MaterialOneofCase {
 166      None = 0,
 167      Unlit = 1,
 168      Pbr = 2,
 169    }
 170    private MaterialOneofCase materialCase_ = MaterialOneofCase.None;
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public MaterialOneofCase MaterialCase {
 174      get { return materialCase_; }
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public void ClearMaterial() {
 180      materialCase_ = MaterialOneofCase.None;
 181      material_ = null;
 182    }
 183
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public override bool Equals(object other) {
 187      return Equals(other as PBMaterial);
 188    }
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public bool Equals(PBMaterial other) {
 193      if (ReferenceEquals(other, null)) {
 194        return false;
 195      }
 196      if (ReferenceEquals(other, this)) {
 197        return true;
 198      }
 199      if (!object.Equals(Unlit, other.Unlit)) return false;
 200      if (!object.Equals(Pbr, other.Pbr)) return false;
 201      if (MaterialCase != other.MaterialCase) return false;
 202      return Equals(_unknownFields, other._unknownFields);
 203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public override int GetHashCode() {
 208      int hash = 1;
 209      if (materialCase_ == MaterialOneofCase.Unlit) hash ^= Unlit.GetHashCode();
 210      if (materialCase_ == MaterialOneofCase.Pbr) hash ^= Pbr.GetHashCode();
 211      hash ^= (int) materialCase_;
 212      if (_unknownFields != null) {
 213        hash ^= _unknownFields.GetHashCode();
 214      }
 215      return hash;
 216    }
 217
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public override string ToString() {
 221      return pb::JsonFormatter.ToDiagnosticString(this);
 222    }
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226    public void WriteTo(pb::CodedOutputStream output) {
 227    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 228      output.WriteRawMessage(this);
 229    #else
 230      if (materialCase_ == MaterialOneofCase.Unlit) {
 231        output.WriteRawTag(10);
 232        output.WriteMessage(Unlit);
 233      }
 234      if (materialCase_ == MaterialOneofCase.Pbr) {
 235        output.WriteRawTag(18);
 236        output.WriteMessage(Pbr);
 237      }
 238      if (_unknownFields != null) {
 239        _unknownFields.WriteTo(output);
 240      }
 241    #endif
 242    }
 243
 244    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 248      if (materialCase_ == MaterialOneofCase.Unlit) {
 249        output.WriteRawTag(10);
 250        output.WriteMessage(Unlit);
 251      }
 252      if (materialCase_ == MaterialOneofCase.Pbr) {
 253        output.WriteRawTag(18);
 254        output.WriteMessage(Pbr);
 255      }
 256      if (_unknownFields != null) {
 257        _unknownFields.WriteTo(ref output);
 258      }
 259    }
 260    #endif
 261
 262    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 263    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 264    public int CalculateSize() {
 265      int size = 0;
 266      if (materialCase_ == MaterialOneofCase.Unlit) {
 267        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unlit);
 268      }
 269      if (materialCase_ == MaterialOneofCase.Pbr) {
 270        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pbr);
 271      }
 272      if (_unknownFields != null) {
 273        size += _unknownFields.CalculateSize();
 274      }
 275      return size;
 276    }
 277
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public void MergeFrom(PBMaterial other) {
 281      if (other == null) {
 282        return;
 283      }
 284      switch (other.MaterialCase) {
 285        case MaterialOneofCase.Unlit:
 286          if (Unlit == null) {
 287            Unlit = new global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial();
 288          }
 289          Unlit.MergeFrom(other.Unlit);
 290          break;
 291        case MaterialOneofCase.Pbr:
 292          if (Pbr == null) {
 293            Pbr = new global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial();
 294          }
 295          Pbr.MergeFrom(other.Pbr);
 296          break;
 297      }
 298
 299      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 300    }
 301
 302    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 303    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 304    public void MergeFrom(pb::CodedInputStream input) {
 305    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 306      input.ReadRawMessage(this);
 307    #else
 308      uint tag;
 309      while ((tag = input.ReadTag()) != 0) {
 310        switch(tag) {
 311          default:
 312            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 313            break;
 314          case 10: {
 315            global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial subBuilder = new global::DCL.ECSComponents.PBMateri
 316            if (materialCase_ == MaterialOneofCase.Unlit) {
 317              subBuilder.MergeFrom(Unlit);
 318            }
 319            input.ReadMessage(subBuilder);
 320            Unlit = subBuilder;
 321            break;
 322          }
 323          case 18: {
 324            global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial subBuilder = new global::DCL.ECSComponents.PBMaterial
 325            if (materialCase_ == MaterialOneofCase.Pbr) {
 326              subBuilder.MergeFrom(Pbr);
 327            }
 328            input.ReadMessage(subBuilder);
 329            Pbr = subBuilder;
 330            break;
 331          }
 332        }
 333      }
 334    #endif
 335    }
 336
 337    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 338    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 339    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 340    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 341      uint tag;
 342      while ((tag = input.ReadTag()) != 0) {
 343        switch(tag) {
 344          default:
 345            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 346            break;
 347          case 10: {
 348            global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial subBuilder = new global::DCL.ECSComponents.PBMateri
 349            if (materialCase_ == MaterialOneofCase.Unlit) {
 350              subBuilder.MergeFrom(Unlit);
 351            }
 352            input.ReadMessage(subBuilder);
 353            Unlit = subBuilder;
 354            break;
 355          }
 356          case 18: {
 357            global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial subBuilder = new global::DCL.ECSComponents.PBMaterial
 358            if (materialCase_ == MaterialOneofCase.Pbr) {
 359              subBuilder.MergeFrom(Pbr);
 360            }
 361            input.ReadMessage(subBuilder);
 362            Pbr = subBuilder;
 363            break;
 364          }
 365        }
 366      }
 367    }
 368    #endif
 369
 370    #region Nested types
 371    /// <summary>Container for nested types declared in the PBMaterial message type.</summary>
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 374    public static partial class Types {
 375      public sealed partial class UnlitMaterial : pb::IMessage<UnlitMaterial>
 376      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 377          , pb::IBufferMessage
 378      #endif
 379      {
 380        private static readonly pb::MessageParser<UnlitMaterial> _parser = new pb::MessageParser<UnlitMaterial>(() => ne
 381        private pb::UnknownFieldSet _unknownFields;
 382        private int _hasBits0;
 383        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 384        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 385        public static pb::MessageParser<UnlitMaterial> Parser { get { return _parser; } }
 386
 387        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389        public static pbr::MessageDescriptor Descriptor {
 390          get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[0]; }
 391        }
 392
 393        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 394        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 395        pbr::MessageDescriptor pb::IMessage.Descriptor {
 396          get { return Descriptor; }
 397        }
 398
 399        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 400        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 401        public UnlitMaterial() {
 402          OnConstruction();
 403        }
 404
 405        partial void OnConstruction();
 406
 407        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 408        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 409        public UnlitMaterial(UnlitMaterial other) : this() {
 410          _hasBits0 = other._hasBits0;
 411          texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 412          alphaTest_ = other.alphaTest_;
 413          castShadows_ = other.castShadows_;
 414          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 415        }
 416
 417        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419        public UnlitMaterial Clone() {
 420          return new UnlitMaterial(this);
 421        }
 422
 423        /// <summary>Field number for the "texture" field.</summary>
 424        public const int TextureFieldNumber = 1;
 425        private global::Decentraland.Common.TextureUnion texture_;
 426        /// <summary>
 427        /// default = null
 428        /// </summary>
 429        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 430        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 431        public global::Decentraland.Common.TextureUnion Texture {
 432          get { return texture_; }
 433          set {
 434            texture_ = value;
 435          }
 436        }
 437
 438        /// <summary>Field number for the "alpha_test" field.</summary>
 439        public const int AlphaTestFieldNumber = 2;
 440        private float alphaTest_;
 441        /// <summary>
 442        /// default = 0.5. range value: from 0 to 1
 443        /// </summary>
 444        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 445        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 446        public float AlphaTest {
 447          get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 448          set {
 449            _hasBits0 |= 1;
 450            alphaTest_ = value;
 451          }
 452        }
 453        /// <summary>Gets whether the "alpha_test" field is set</summary>
 454        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 456        public bool HasAlphaTest {
 457          get { return (_hasBits0 & 1) != 0; }
 458        }
 459        /// <summary>Clears the value of the "alpha_test" field</summary>
 460        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 461        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 462        public void ClearAlphaTest() {
 463          _hasBits0 &= ~1;
 464        }
 465
 466        /// <summary>Field number for the "cast_shadows" field.</summary>
 467        public const int CastShadowsFieldNumber = 3;
 468        private bool castShadows_;
 469        /// <summary>
 470        /// default =  true
 471        /// </summary>
 472        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 473        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 474        public bool CastShadows {
 475          get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 476          set {
 477            _hasBits0 |= 2;
 478            castShadows_ = value;
 479          }
 480        }
 481        /// <summary>Gets whether the "cast_shadows" field is set</summary>
 482        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 483        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 484        public bool HasCastShadows {
 485          get { return (_hasBits0 & 2) != 0; }
 486        }
 487        /// <summary>Clears the value of the "cast_shadows" field</summary>
 488        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 489        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 490        public void ClearCastShadows() {
 491          _hasBits0 &= ~2;
 492        }
 493
 494        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 495        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 496        public override bool Equals(object other) {
 497          return Equals(other as UnlitMaterial);
 498        }
 499
 500        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 501        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 502        public bool Equals(UnlitMaterial other) {
 503          if (ReferenceEquals(other, null)) {
 504            return false;
 505          }
 506          if (ReferenceEquals(other, this)) {
 507            return true;
 508          }
 509          if (!object.Equals(Texture, other.Texture)) return false;
 510          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f
 511          if (CastShadows != other.CastShadows) return false;
 512          return Equals(_unknownFields, other._unknownFields);
 513        }
 514
 515        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 516        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 517        public override int GetHashCode() {
 518          int hash = 1;
 519          if (texture_ != null) hash ^= Texture.GetHashCode();
 520          if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 521          if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 522          if (_unknownFields != null) {
 523            hash ^= _unknownFields.GetHashCode();
 524          }
 525          return hash;
 526        }
 527
 528        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 529        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 530        public override string ToString() {
 531          return pb::JsonFormatter.ToDiagnosticString(this);
 532        }
 533
 534        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 535        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 536        public void WriteTo(pb::CodedOutputStream output) {
 537        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 538          output.WriteRawMessage(this);
 539        #else
 540          if (texture_ != null) {
 541            output.WriteRawTag(10);
 542            output.WriteMessage(Texture);
 543          }
 544          if (HasAlphaTest) {
 545            output.WriteRawTag(21);
 546            output.WriteFloat(AlphaTest);
 547          }
 548          if (HasCastShadows) {
 549            output.WriteRawTag(24);
 550            output.WriteBool(CastShadows);
 551          }
 552          if (_unknownFields != null) {
 553            _unknownFields.WriteTo(output);
 554          }
 555        #endif
 556        }
 557
 558        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 559        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 560        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 561        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 562          if (texture_ != null) {
 563            output.WriteRawTag(10);
 564            output.WriteMessage(Texture);
 565          }
 566          if (HasAlphaTest) {
 567            output.WriteRawTag(21);
 568            output.WriteFloat(AlphaTest);
 569          }
 570          if (HasCastShadows) {
 571            output.WriteRawTag(24);
 572            output.WriteBool(CastShadows);
 573          }
 574          if (_unknownFields != null) {
 575            _unknownFields.WriteTo(ref output);
 576          }
 577        }
 578        #endif
 579
 580        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 581        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 582        public int CalculateSize() {
 583          int size = 0;
 584          if (texture_ != null) {
 585            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 586          }
 587          if (HasAlphaTest) {
 588            size += 1 + 4;
 589          }
 590          if (HasCastShadows) {
 591            size += 1 + 1;
 592          }
 593          if (_unknownFields != null) {
 594            size += _unknownFields.CalculateSize();
 595          }
 596          return size;
 597        }
 598
 599        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 600        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 601        public void MergeFrom(UnlitMaterial other) {
 602          if (other == null) {
 603            return;
 604          }
 605          if (other.texture_ != null) {
 606            if (texture_ == null) {
 607              Texture = new global::Decentraland.Common.TextureUnion();
 608            }
 609            Texture.MergeFrom(other.Texture);
 610          }
 611          if (other.HasAlphaTest) {
 612            AlphaTest = other.AlphaTest;
 613          }
 614          if (other.HasCastShadows) {
 615            CastShadows = other.CastShadows;
 616          }
 617          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 618        }
 619
 620        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 621        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 622        public void MergeFrom(pb::CodedInputStream input) {
 623        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 624          input.ReadRawMessage(this);
 625        #else
 626          uint tag;
 627          while ((tag = input.ReadTag()) != 0) {
 628            switch(tag) {
 629              default:
 630                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 631                break;
 632              case 10: {
 633                if (texture_ == null) {
 634                  Texture = new global::Decentraland.Common.TextureUnion();
 635                }
 636                input.ReadMessage(Texture);
 637                break;
 638              }
 639              case 21: {
 640                AlphaTest = input.ReadFloat();
 641                break;
 642              }
 643              case 24: {
 644                CastShadows = input.ReadBool();
 645                break;
 646              }
 647            }
 648          }
 649        #endif
 650        }
 651
 652        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 653        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 654        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 655        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 656          uint tag;
 657          while ((tag = input.ReadTag()) != 0) {
 658            switch(tag) {
 659              default:
 660                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 661                break;
 662              case 10: {
 663                if (texture_ == null) {
 664                  Texture = new global::Decentraland.Common.TextureUnion();
 665                }
 666                input.ReadMessage(Texture);
 667                break;
 668              }
 669              case 21: {
 670                AlphaTest = input.ReadFloat();
 671                break;
 672              }
 673              case 24: {
 674                CastShadows = input.ReadBool();
 675                break;
 676              }
 677            }
 678          }
 679        }
 680        #endif
 681
 682      }
 683
 684      public sealed partial class PbrMaterial : pb::IMessage<PbrMaterial>
 685      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 686          , pb::IBufferMessage
 687      #endif
 688      {
 689        private static readonly pb::MessageParser<PbrMaterial> _parser = new pb::MessageParser<PbrMaterial>(() => new Pb
 690        private pb::UnknownFieldSet _unknownFields;
 691        private int _hasBits0;
 692        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 693        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 694        public static pb::MessageParser<PbrMaterial> Parser { get { return _parser; } }
 695
 696        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 697        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 698        public static pbr::MessageDescriptor Descriptor {
 699          get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[1]; }
 700        }
 701
 702        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 703        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 704        pbr::MessageDescriptor pb::IMessage.Descriptor {
 705          get { return Descriptor; }
 706        }
 707
 708        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 709        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 710        public PbrMaterial() {
 711          OnConstruction();
 712        }
 713
 714        partial void OnConstruction();
 715
 716        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 717        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 718        public PbrMaterial(PbrMaterial other) : this() {
 719          _hasBits0 = other._hasBits0;
 720          texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 721          alphaTest_ = other.alphaTest_;
 722          castShadows_ = other.castShadows_;
 723          alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null;
 724          emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null;
 725          bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null;
 726          albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null;
 727          emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null;
 728          reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null;
 729          transparencyMode_ = other.transparencyMode_;
 730          metallic_ = other.metallic_;
 731          roughness_ = other.roughness_;
 732          glossiness_ = other.glossiness_;
 733          specularIntensity_ = other.specularIntensity_;
 734          emissiveIntensity_ = other.emissiveIntensity_;
 735          directIntensity_ = other.directIntensity_;
 736          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 737        }
 738
 739        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 740        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 741        public PbrMaterial Clone() {
 742          return new PbrMaterial(this);
 743        }
 744
 745        /// <summary>Field number for the "texture" field.</summary>
 746        public const int TextureFieldNumber = 1;
 747        private global::Decentraland.Common.TextureUnion texture_;
 748        /// <summary>
 749        /// default = null
 750        /// </summary>
 751        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 752        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 753        public global::Decentraland.Common.TextureUnion Texture {
 754          get { return texture_; }
 755          set {
 756            texture_ = value;
 757          }
 758        }
 759
 760        /// <summary>Field number for the "alpha_test" field.</summary>
 761        public const int AlphaTestFieldNumber = 2;
 762        private float alphaTest_;
 763        /// <summary>
 764        /// default = 0.5. range value: from 0 to 1
 765        /// </summary>
 766        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 767        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 768        public float AlphaTest {
 769          get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 770          set {
 771            _hasBits0 |= 1;
 772            alphaTest_ = value;
 773          }
 774        }
 775        /// <summary>Gets whether the "alpha_test" field is set</summary>
 776        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 777        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 778        public bool HasAlphaTest {
 779          get { return (_hasBits0 & 1) != 0; }
 780        }
 781        /// <summary>Clears the value of the "alpha_test" field</summary>
 782        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 783        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 784        public void ClearAlphaTest() {
 785          _hasBits0 &= ~1;
 786        }
 787
 788        /// <summary>Field number for the "cast_shadows" field.</summary>
 789        public const int CastShadowsFieldNumber = 3;
 790        private bool castShadows_;
 791        /// <summary>
 792        /// default =  true
 793        /// </summary>
 794        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 795        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 796        public bool CastShadows {
 797          get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 798          set {
 799            _hasBits0 |= 2;
 800            castShadows_ = value;
 801          }
 802        }
 803        /// <summary>Gets whether the "cast_shadows" field is set</summary>
 804        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 805        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 806        public bool HasCastShadows {
 807          get { return (_hasBits0 & 2) != 0; }
 808        }
 809        /// <summary>Clears the value of the "cast_shadows" field</summary>
 810        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 811        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 812        public void ClearCastShadows() {
 813          _hasBits0 &= ~2;
 814        }
 815
 816        /// <summary>Field number for the "alpha_texture" field.</summary>
 817        public const int AlphaTextureFieldNumber = 4;
 818        private global::Decentraland.Common.TextureUnion alphaTexture_;
 819        /// <summary>
 820        /// default = null
 821        /// </summary>
 822        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 823        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 824        public global::Decentraland.Common.TextureUnion AlphaTexture {
 825          get { return alphaTexture_; }
 826          set {
 827            alphaTexture_ = value;
 828          }
 829        }
 830
 831        /// <summary>Field number for the "emissive_texture" field.</summary>
 832        public const int EmissiveTextureFieldNumber = 5;
 833        private global::Decentraland.Common.TextureUnion emissiveTexture_;
 834        /// <summary>
 835        /// default = null
 836        /// </summary>
 837        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 838        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 839        public global::Decentraland.Common.TextureUnion EmissiveTexture {
 840          get { return emissiveTexture_; }
 841          set {
 842            emissiveTexture_ = value;
 843          }
 844        }
 845
 846        /// <summary>Field number for the "bump_texture" field.</summary>
 847        public const int BumpTextureFieldNumber = 6;
 848        private global::Decentraland.Common.TextureUnion bumpTexture_;
 849        /// <summary>
 850        /// default = null
 851        /// </summary>
 852        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 853        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 854        public global::Decentraland.Common.TextureUnion BumpTexture {
 855          get { return bumpTexture_; }
 856          set {
 857            bumpTexture_ = value;
 858          }
 859        }
 860
 861        /// <summary>Field number for the "albedo_color" field.</summary>
 862        public const int AlbedoColorFieldNumber = 7;
 863        private global::Decentraland.Common.Color4 albedoColor_;
 864        /// <summary>
 865        /// default = white;
 866        /// </summary>
 867        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 868        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 869        public global::Decentraland.Common.Color4 AlbedoColor {
 870          get { return albedoColor_; }
 871          set {
 872            albedoColor_ = value;
 873          }
 874        }
 875
 876        /// <summary>Field number for the "emissive_color" field.</summary>
 877        public const int EmissiveColorFieldNumber = 8;
 878        private global::Decentraland.Common.Color3 emissiveColor_;
 879        /// <summary>
 880        /// default = black;
 881        /// </summary>
 882        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 883        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 884        public global::Decentraland.Common.Color3 EmissiveColor {
 885          get { return emissiveColor_; }
 886          set {
 887            emissiveColor_ = value;
 888          }
 889        }
 890
 891        /// <summary>Field number for the "reflectivity_color" field.</summary>
 892        public const int ReflectivityColorFieldNumber = 9;
 893        private global::Decentraland.Common.Color3 reflectivityColor_;
 894        /// <summary>
 895        /// default = white;
 896        /// </summary>
 897        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 898        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 899        public global::Decentraland.Common.Color3 ReflectivityColor {
 900          get { return reflectivityColor_; }
 901          set {
 902            reflectivityColor_ = value;
 903          }
 904        }
 905
 906        /// <summary>Field number for the "transparency_mode" field.</summary>
 907        public const int TransparencyModeFieldNumber = 10;
 908        private global::DCL.ECSComponents.MaterialTransparencyMode transparencyMode_;
 909        /// <summary>
 910        /// default = TransparencyMode.Auto
 911        /// </summary>
 912        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 913        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 914        public global::DCL.ECSComponents.MaterialTransparencyMode TransparencyMode {
 915          get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Material
 916          set {
 917            _hasBits0 |= 4;
 918            transparencyMode_ = value;
 919          }
 920        }
 921        /// <summary>Gets whether the "transparency_mode" field is set</summary>
 922        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 923        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 924        public bool HasTransparencyMode {
 925          get { return (_hasBits0 & 4) != 0; }
 926        }
 927        /// <summary>Clears the value of the "transparency_mode" field</summary>
 928        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 929        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 930        public void ClearTransparencyMode() {
 931          _hasBits0 &= ~4;
 932        }
 933
 934        /// <summary>Field number for the "metallic" field.</summary>
 935        public const int MetallicFieldNumber = 11;
 936        private float metallic_;
 937        /// <summary>
 938        /// default = 0.5
 939        /// </summary>
 940        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 941        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 942        public float Metallic {
 943          get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } }
 944          set {
 945            _hasBits0 |= 8;
 946            metallic_ = value;
 947          }
 948        }
 949        /// <summary>Gets whether the "metallic" field is set</summary>
 950        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 951        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 952        public bool HasMetallic {
 953          get { return (_hasBits0 & 8) != 0; }
 954        }
 955        /// <summary>Clears the value of the "metallic" field</summary>
 956        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 957        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 958        public void ClearMetallic() {
 959          _hasBits0 &= ~8;
 960        }
 961
 962        /// <summary>Field number for the "roughness" field.</summary>
 963        public const int RoughnessFieldNumber = 12;
 964        private float roughness_;
 965        /// <summary>
 966        /// default = 0.5
 967        /// </summary>
 968        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 969        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 970        public float Roughness {
 971          get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } }
 972          set {
 973            _hasBits0 |= 16;
 974            roughness_ = value;
 975          }
 976        }
 977        /// <summary>Gets whether the "roughness" field is set</summary>
 978        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 979        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 980        public bool HasRoughness {
 981          get { return (_hasBits0 & 16) != 0; }
 982        }
 983        /// <summary>Clears the value of the "roughness" field</summary>
 984        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 985        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 986        public void ClearRoughness() {
 987          _hasBits0 &= ~16;
 988        }
 989
 990        /// <summary>Field number for the "glossiness" field.</summary>
 991        public const int GlossinessFieldNumber = 13;
 992        private float glossiness_;
 993        /// <summary>
 994        /// default = 1
 995        /// </summary>
 996        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 997        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 998        public float Glossiness {
 999          get { if ((_hasBits0 & 32) != 0) { return glossiness_; } else { return 0F; } }
 1000          set {
 1001            _hasBits0 |= 32;
 1002            glossiness_ = value;
 1003          }
 1004        }
 1005        /// <summary>Gets whether the "glossiness" field is set</summary>
 1006        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1007        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1008        public bool HasGlossiness {
 1009          get { return (_hasBits0 & 32) != 0; }
 1010        }
 1011        /// <summary>Clears the value of the "glossiness" field</summary>
 1012        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1013        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1014        public void ClearGlossiness() {
 1015          _hasBits0 &= ~32;
 1016        }
 1017
 1018        /// <summary>Field number for the "specular_intensity" field.</summary>
 1019        public const int SpecularIntensityFieldNumber = 14;
 1020        private float specularIntensity_;
 1021        /// <summary>
 1022        /// default = 1
 1023        /// </summary>
 1024        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1025        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1026        public float SpecularIntensity {
 1027          get { if ((_hasBits0 & 64) != 0) { return specularIntensity_; } else { return 0F; } }
 1028          set {
 1029            _hasBits0 |= 64;
 1030            specularIntensity_ = value;
 1031          }
 1032        }
 1033        /// <summary>Gets whether the "specular_intensity" field is set</summary>
 1034        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1035        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1036        public bool HasSpecularIntensity {
 1037          get { return (_hasBits0 & 64) != 0; }
 1038        }
 1039        /// <summary>Clears the value of the "specular_intensity" field</summary>
 1040        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1041        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1042        public void ClearSpecularIntensity() {
 1043          _hasBits0 &= ~64;
 1044        }
 1045
 1046        /// <summary>Field number for the "emissive_intensity" field.</summary>
 1047        public const int EmissiveIntensityFieldNumber = 15;
 1048        private float emissiveIntensity_;
 1049        /// <summary>
 1050        /// default = 2
 1051        /// </summary>
 1052        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1053        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1054        public float EmissiveIntensity {
 1055          get { if ((_hasBits0 & 128) != 0) { return emissiveIntensity_; } else { return 0F; } }
 1056          set {
 1057            _hasBits0 |= 128;
 1058            emissiveIntensity_ = value;
 1059          }
 1060        }
 1061        /// <summary>Gets whether the "emissive_intensity" field is set</summary>
 1062        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1063        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1064        public bool HasEmissiveIntensity {
 1065          get { return (_hasBits0 & 128) != 0; }
 1066        }
 1067        /// <summary>Clears the value of the "emissive_intensity" field</summary>
 1068        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1069        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1070        public void ClearEmissiveIntensity() {
 1071          _hasBits0 &= ~128;
 1072        }
 1073
 1074        /// <summary>Field number for the "direct_intensity" field.</summary>
 1075        public const int DirectIntensityFieldNumber = 16;
 1076        private float directIntensity_;
 1077        /// <summary>
 1078        /// default = 1
 1079        /// </summary>
 1080        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1081        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1082        public float DirectIntensity {
 1083          get { if ((_hasBits0 & 256) != 0) { return directIntensity_; } else { return 0F; } }
 1084          set {
 1085            _hasBits0 |= 256;
 1086            directIntensity_ = value;
 1087          }
 1088        }
 1089        /// <summary>Gets whether the "direct_intensity" field is set</summary>
 1090        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1091        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1092        public bool HasDirectIntensity {
 1093          get { return (_hasBits0 & 256) != 0; }
 1094        }
 1095        /// <summary>Clears the value of the "direct_intensity" field</summary>
 1096        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1097        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1098        public void ClearDirectIntensity() {
 1099          _hasBits0 &= ~256;
 1100        }
 1101
 1102        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1103        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1104        public override bool Equals(object other) {
 1105          return Equals(other as PbrMaterial);
 1106        }
 1107
 1108        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1109        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1110        public bool Equals(PbrMaterial other) {
 1111          if (ReferenceEquals(other, null)) {
 1112            return false;
 1113          }
 1114          if (ReferenceEquals(other, this)) {
 1115            return true;
 1116          }
 1117          if (!object.Equals(Texture, other.Texture)) return false;
 1118          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f
 1119          if (CastShadows != other.CastShadows) return false;
 1120          if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false;
 1121          if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false;
 1122          if (!object.Equals(BumpTexture, other.BumpTexture)) return false;
 1123          if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false;
 1124          if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false;
 1125          if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false;
 1126          if (TransparencyMode != other.TransparencyMode) return false;
 1127          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return fal
 1128          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return f
 1129          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Glossiness, other.Glossiness)) return
 1130          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularInte
 1131          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveInte
 1132          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensit
 1133          return Equals(_unknownFields, other._unknownFields);
 1134        }
 1135
 1136        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1137        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1138        public override int GetHashCode() {
 1139          int hash = 1;
 1140          if (texture_ != null) hash ^= Texture.GetHashCode();
 1141          if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 1142          if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 1143          if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode();
 1144          if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode();
 1145          if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode();
 1146          if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode();
 1147          if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode();
 1148          if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode();
 1149          if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode();
 1150          if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic);
 1151          if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness);
 1152          if (HasGlossiness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Glossiness
 1153          if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Spe
 1154          if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emi
 1155          if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Direc
 1156          if (_unknownFields != null) {
 1157            hash ^= _unknownFields.GetHashCode();
 1158          }
 1159          return hash;
 1160        }
 1161
 1162        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1163        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1164        public override string ToString() {
 1165          return pb::JsonFormatter.ToDiagnosticString(this);
 1166        }
 1167
 1168        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1169        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1170        public void WriteTo(pb::CodedOutputStream output) {
 1171        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1172          output.WriteRawMessage(this);
 1173        #else
 1174          if (texture_ != null) {
 1175            output.WriteRawTag(10);
 1176            output.WriteMessage(Texture);
 1177          }
 1178          if (HasAlphaTest) {
 1179            output.WriteRawTag(21);
 1180            output.WriteFloat(AlphaTest);
 1181          }
 1182          if (HasCastShadows) {
 1183            output.WriteRawTag(24);
 1184            output.WriteBool(CastShadows);
 1185          }
 1186          if (alphaTexture_ != null) {
 1187            output.WriteRawTag(34);
 1188            output.WriteMessage(AlphaTexture);
 1189          }
 1190          if (emissiveTexture_ != null) {
 1191            output.WriteRawTag(42);
 1192            output.WriteMessage(EmissiveTexture);
 1193          }
 1194          if (bumpTexture_ != null) {
 1195            output.WriteRawTag(50);
 1196            output.WriteMessage(BumpTexture);
 1197          }
 1198          if (albedoColor_ != null) {
 1199            output.WriteRawTag(58);
 1200            output.WriteMessage(AlbedoColor);
 1201          }
 1202          if (emissiveColor_ != null) {
 1203            output.WriteRawTag(66);
 1204            output.WriteMessage(EmissiveColor);
 1205          }
 1206          if (reflectivityColor_ != null) {
 1207            output.WriteRawTag(74);
 1208            output.WriteMessage(ReflectivityColor);
 1209          }
 1210          if (HasTransparencyMode) {
 1211            output.WriteRawTag(80);
 1212            output.WriteEnum((int) TransparencyMode);
 1213          }
 1214          if (HasMetallic) {
 1215            output.WriteRawTag(93);
 1216            output.WriteFloat(Metallic);
 1217          }
 1218          if (HasRoughness) {
 1219            output.WriteRawTag(101);
 1220            output.WriteFloat(Roughness);
 1221          }
 1222          if (HasGlossiness) {
 1223            output.WriteRawTag(109);
 1224            output.WriteFloat(Glossiness);
 1225          }
 1226          if (HasSpecularIntensity) {
 1227            output.WriteRawTag(117);
 1228            output.WriteFloat(SpecularIntensity);
 1229          }
 1230          if (HasEmissiveIntensity) {
 1231            output.WriteRawTag(125);
 1232            output.WriteFloat(EmissiveIntensity);
 1233          }
 1234          if (HasDirectIntensity) {
 1235            output.WriteRawTag(133, 1);
 1236            output.WriteFloat(DirectIntensity);
 1237          }
 1238          if (_unknownFields != null) {
 1239            _unknownFields.WriteTo(output);
 1240          }
 1241        #endif
 1242        }
 1243
 1244        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1245        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1246        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1247        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 1248          if (texture_ != null) {
 1249            output.WriteRawTag(10);
 1250            output.WriteMessage(Texture);
 1251          }
 1252          if (HasAlphaTest) {
 1253            output.WriteRawTag(21);
 1254            output.WriteFloat(AlphaTest);
 1255          }
 1256          if (HasCastShadows) {
 1257            output.WriteRawTag(24);
 1258            output.WriteBool(CastShadows);
 1259          }
 1260          if (alphaTexture_ != null) {
 1261            output.WriteRawTag(34);
 1262            output.WriteMessage(AlphaTexture);
 1263          }
 1264          if (emissiveTexture_ != null) {
 1265            output.WriteRawTag(42);
 1266            output.WriteMessage(EmissiveTexture);
 1267          }
 1268          if (bumpTexture_ != null) {
 1269            output.WriteRawTag(50);
 1270            output.WriteMessage(BumpTexture);
 1271          }
 1272          if (albedoColor_ != null) {
 1273            output.WriteRawTag(58);
 1274            output.WriteMessage(AlbedoColor);
 1275          }
 1276          if (emissiveColor_ != null) {
 1277            output.WriteRawTag(66);
 1278            output.WriteMessage(EmissiveColor);
 1279          }
 1280          if (reflectivityColor_ != null) {
 1281            output.WriteRawTag(74);
 1282            output.WriteMessage(ReflectivityColor);
 1283          }
 1284          if (HasTransparencyMode) {
 1285            output.WriteRawTag(80);
 1286            output.WriteEnum((int) TransparencyMode);
 1287          }
 1288          if (HasMetallic) {
 1289            output.WriteRawTag(93);
 1290            output.WriteFloat(Metallic);
 1291          }
 1292          if (HasRoughness) {
 1293            output.WriteRawTag(101);
 1294            output.WriteFloat(Roughness);
 1295          }
 1296          if (HasGlossiness) {
 1297            output.WriteRawTag(109);
 1298            output.WriteFloat(Glossiness);
 1299          }
 1300          if (HasSpecularIntensity) {
 1301            output.WriteRawTag(117);
 1302            output.WriteFloat(SpecularIntensity);
 1303          }
 1304          if (HasEmissiveIntensity) {
 1305            output.WriteRawTag(125);
 1306            output.WriteFloat(EmissiveIntensity);
 1307          }
 1308          if (HasDirectIntensity) {
 1309            output.WriteRawTag(133, 1);
 1310            output.WriteFloat(DirectIntensity);
 1311          }
 1312          if (_unknownFields != null) {
 1313            _unknownFields.WriteTo(ref output);
 1314          }
 1315        }
 1316        #endif
 1317
 1318        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1319        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1320        public int CalculateSize() {
 1321          int size = 0;
 1322          if (texture_ != null) {
 1323            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 1324          }
 1325          if (HasAlphaTest) {
 1326            size += 1 + 4;
 1327          }
 1328          if (HasCastShadows) {
 1329            size += 1 + 1;
 1330          }
 1331          if (alphaTexture_ != null) {
 1332            size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture);
 1333          }
 1334          if (emissiveTexture_ != null) {
 1335            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture);
 1336          }
 1337          if (bumpTexture_ != null) {
 1338            size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture);
 1339          }
 1340          if (albedoColor_ != null) {
 1341            size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor);
 1342          }
 1343          if (emissiveColor_ != null) {
 1344            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor);
 1345          }
 1346          if (reflectivityColor_ != null) {
 1347            size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor);
 1348          }
 1349          if (HasTransparencyMode) {
 1350            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode);
 1351          }
 1352          if (HasMetallic) {
 1353            size += 1 + 4;
 1354          }
 1355          if (HasRoughness) {
 1356            size += 1 + 4;
 1357          }
 1358          if (HasGlossiness) {
 1359            size += 1 + 4;
 1360          }
 1361          if (HasSpecularIntensity) {
 1362            size += 1 + 4;
 1363          }
 1364          if (HasEmissiveIntensity) {
 1365            size += 1 + 4;
 1366          }
 1367          if (HasDirectIntensity) {
 1368            size += 2 + 4;
 1369          }
 1370          if (_unknownFields != null) {
 1371            size += _unknownFields.CalculateSize();
 1372          }
 1373          return size;
 1374        }
 1375
 1376        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1377        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1378        public void MergeFrom(PbrMaterial other) {
 1379          if (other == null) {
 1380            return;
 1381          }
 1382          if (other.texture_ != null) {
 1383            if (texture_ == null) {
 1384              Texture = new global::Decentraland.Common.TextureUnion();
 1385            }
 1386            Texture.MergeFrom(other.Texture);
 1387          }
 1388          if (other.HasAlphaTest) {
 1389            AlphaTest = other.AlphaTest;
 1390          }
 1391          if (other.HasCastShadows) {
 1392            CastShadows = other.CastShadows;
 1393          }
 1394          if (other.alphaTexture_ != null) {
 1395            if (alphaTexture_ == null) {
 1396              AlphaTexture = new global::Decentraland.Common.TextureUnion();
 1397            }
 1398            AlphaTexture.MergeFrom(other.AlphaTexture);
 1399          }
 1400          if (other.emissiveTexture_ != null) {
 1401            if (emissiveTexture_ == null) {
 1402              EmissiveTexture = new global::Decentraland.Common.TextureUnion();
 1403            }
 1404            EmissiveTexture.MergeFrom(other.EmissiveTexture);
 1405          }
 1406          if (other.bumpTexture_ != null) {
 1407            if (bumpTexture_ == null) {
 1408              BumpTexture = new global::Decentraland.Common.TextureUnion();
 1409            }
 1410            BumpTexture.MergeFrom(other.BumpTexture);
 1411          }
 1412          if (other.albedoColor_ != null) {
 1413            if (albedoColor_ == null) {
 1414              AlbedoColor = new global::Decentraland.Common.Color4();
 1415            }
 1416            AlbedoColor.MergeFrom(other.AlbedoColor);
 1417          }
 1418          if (other.emissiveColor_ != null) {
 1419            if (emissiveColor_ == null) {
 1420              EmissiveColor = new global::Decentraland.Common.Color3();
 1421            }
 1422            EmissiveColor.MergeFrom(other.EmissiveColor);
 1423          }
 1424          if (other.reflectivityColor_ != null) {
 1425            if (reflectivityColor_ == null) {
 1426              ReflectivityColor = new global::Decentraland.Common.Color3();
 1427            }
 1428            ReflectivityColor.MergeFrom(other.ReflectivityColor);
 1429          }
 1430          if (other.HasTransparencyMode) {
 1431            TransparencyMode = other.TransparencyMode;
 1432          }
 1433          if (other.HasMetallic) {
 1434            Metallic = other.Metallic;
 1435          }
 1436          if (other.HasRoughness) {
 1437            Roughness = other.Roughness;
 1438          }
 1439          if (other.HasGlossiness) {
 1440            Glossiness = other.Glossiness;
 1441          }
 1442          if (other.HasSpecularIntensity) {
 1443            SpecularIntensity = other.SpecularIntensity;
 1444          }
 1445          if (other.HasEmissiveIntensity) {
 1446            EmissiveIntensity = other.EmissiveIntensity;
 1447          }
 1448          if (other.HasDirectIntensity) {
 1449            DirectIntensity = other.DirectIntensity;
 1450          }
 1451          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 1452        }
 1453
 1454        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1455        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1456        public void MergeFrom(pb::CodedInputStream input) {
 1457        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1458          input.ReadRawMessage(this);
 1459        #else
 1460          uint tag;
 1461          while ((tag = input.ReadTag()) != 0) {
 1462            switch(tag) {
 1463              default:
 1464                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 1465                break;
 1466              case 10: {
 1467                if (texture_ == null) {
 1468                  Texture = new global::Decentraland.Common.TextureUnion();
 1469                }
 1470                input.ReadMessage(Texture);
 1471                break;
 1472              }
 1473              case 21: {
 1474                AlphaTest = input.ReadFloat();
 1475                break;
 1476              }
 1477              case 24: {
 1478                CastShadows = input.ReadBool();
 1479                break;
 1480              }
 1481              case 34: {
 1482                if (alphaTexture_ == null) {
 1483                  AlphaTexture = new global::Decentraland.Common.TextureUnion();
 1484                }
 1485                input.ReadMessage(AlphaTexture);
 1486                break;
 1487              }
 1488              case 42: {
 1489                if (emissiveTexture_ == null) {
 1490                  EmissiveTexture = new global::Decentraland.Common.TextureUnion();
 1491                }
 1492                input.ReadMessage(EmissiveTexture);
 1493                break;
 1494              }
 1495              case 50: {
 1496                if (bumpTexture_ == null) {
 1497                  BumpTexture = new global::Decentraland.Common.TextureUnion();
 1498                }
 1499                input.ReadMessage(BumpTexture);
 1500                break;
 1501              }
 1502              case 58: {
 1503                if (albedoColor_ == null) {
 1504                  AlbedoColor = new global::Decentraland.Common.Color4();
 1505                }
 1506                input.ReadMessage(AlbedoColor);
 1507                break;
 1508              }
 1509              case 66: {
 1510                if (emissiveColor_ == null) {
 1511                  EmissiveColor = new global::Decentraland.Common.Color3();
 1512                }
 1513                input.ReadMessage(EmissiveColor);
 1514                break;
 1515              }
 1516              case 74: {
 1517                if (reflectivityColor_ == null) {
 1518                  ReflectivityColor = new global::Decentraland.Common.Color3();
 1519                }
 1520                input.ReadMessage(ReflectivityColor);
 1521                break;
 1522              }
 1523              case 80: {
 1524                TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum();
 1525                break;
 1526              }
 1527              case 93: {
 1528                Metallic = input.ReadFloat();
 1529                break;
 1530              }
 1531              case 101: {
 1532                Roughness = input.ReadFloat();
 1533                break;
 1534              }
 1535              case 109: {
 1536                Glossiness = input.ReadFloat();
 1537                break;
 1538              }
 1539              case 117: {
 1540                SpecularIntensity = input.ReadFloat();
 1541                break;
 1542              }
 1543              case 125: {
 1544                EmissiveIntensity = input.ReadFloat();
 1545                break;
 1546              }
 1547              case 133: {
 1548                DirectIntensity = input.ReadFloat();
 1549                break;
 1550              }
 1551            }
 1552          }
 1553        #endif
 1554        }
 1555
 1556        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1557        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1558        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1559        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1560          uint tag;
 1561          while ((tag = input.ReadTag()) != 0) {
 1562            switch(tag) {
 1563              default:
 1564                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1565                break;
 1566              case 10: {
 1567                if (texture_ == null) {
 1568                  Texture = new global::Decentraland.Common.TextureUnion();
 1569                }
 1570                input.ReadMessage(Texture);
 1571                break;
 1572              }
 1573              case 21: {
 1574                AlphaTest = input.ReadFloat();
 1575                break;
 1576              }
 1577              case 24: {
 1578                CastShadows = input.ReadBool();
 1579                break;
 1580              }
 1581              case 34: {
 1582                if (alphaTexture_ == null) {
 1583                  AlphaTexture = new global::Decentraland.Common.TextureUnion();
 1584                }
 1585                input.ReadMessage(AlphaTexture);
 1586                break;
 1587              }
 1588              case 42: {
 1589                if (emissiveTexture_ == null) {
 1590                  EmissiveTexture = new global::Decentraland.Common.TextureUnion();
 1591                }
 1592                input.ReadMessage(EmissiveTexture);
 1593                break;
 1594              }
 1595              case 50: {
 1596                if (bumpTexture_ == null) {
 1597                  BumpTexture = new global::Decentraland.Common.TextureUnion();
 1598                }
 1599                input.ReadMessage(BumpTexture);
 1600                break;
 1601              }
 1602              case 58: {
 1603                if (albedoColor_ == null) {
 1604                  AlbedoColor = new global::Decentraland.Common.Color4();
 1605                }
 1606                input.ReadMessage(AlbedoColor);
 1607                break;
 1608              }
 1609              case 66: {
 1610                if (emissiveColor_ == null) {
 1611                  EmissiveColor = new global::Decentraland.Common.Color3();
 1612                }
 1613                input.ReadMessage(EmissiveColor);
 1614                break;
 1615              }
 1616              case 74: {
 1617                if (reflectivityColor_ == null) {
 1618                  ReflectivityColor = new global::Decentraland.Common.Color3();
 1619                }
 1620                input.ReadMessage(ReflectivityColor);
 1621                break;
 1622              }
 1623              case 80: {
 1624                TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum();
 1625                break;
 1626              }
 1627              case 93: {
 1628                Metallic = input.ReadFloat();
 1629                break;
 1630              }
 1631              case 101: {
 1632                Roughness = input.ReadFloat();
 1633                break;
 1634              }
 1635              case 109: {
 1636                Glossiness = input.ReadFloat();
 1637                break;
 1638              }
 1639              case 117: {
 1640                SpecularIntensity = input.ReadFloat();
 1641                break;
 1642              }
 1643              case 125: {
 1644                EmissiveIntensity = input.ReadFloat();
 1645                break;
 1646              }
 1647              case 133: {
 1648                DirectIntensity = input.ReadFloat();
 1649                break;
 1650              }
 1651            }
 1652          }
 1653        }
 1654        #endif
 1655
 1656      }
 1657
 1658    }
 1659    #endregion
 1660
 1661  }
 1662
 1663  #endregion
 1664
 1665}
 1666
 1667#endregion Designer generated code

Methods/Properties

Descriptor()
MaterialReflection()