< 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:1664
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

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

Methods/Properties

Descriptor()
MaterialReflection()