< Summary

Class:DCL.ECSComponents.PBMaterial
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Material.gen.cs
Covered lines:100
Uncovered lines:420
Coverable lines:520
Total lines:1664
Line coverage:19.2% (100 of 520)
Covered branches:0
Total branches:0
Covered methods:46
Total methods:109
Method coverage:42.2% (46 of 109)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBMaterial()0%110100%
get_Descriptor()0%2100%
PBMaterial()0%110100%
PBMaterial(...)0%3.213071.43%
Clone()0%2100%
ClearMaterial()0%2100%
Equals(...)0%2100%
Equals(...)0%7.736063.64%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%42600%
MergeFrom(...)0%42600%
UnlitMaterial()0%110100%
get_Descriptor()0%2100%
UnlitMaterial()0%110100%
UnlitMaterial(...)0%30500%
Clone()0%2100%
ClearAlphaTest()0%2100%
ClearCastShadows()0%2100%
Equals(...)0%2100%
Equals(...)0%56700%
GetHashCode()0%42600%
ToString()0%2100%
WriteTo(...)0%42600%
CalculateSize()0%42600%
MergeFrom(...)0%72800%
MergeFrom(...)0%90900%
PbrMaterial()0%110100%
get_Descriptor()0%2100%
PbrMaterial()0%110100%
PbrMaterial(...)0%15150100%
Clone()0%110100%
ClearAlphaTest()0%2100%
ClearCastShadows()0%2100%
ClearTransparencyMode()0%2100%
ClearMetallic()0%2100%
ClearRoughness()0%2100%
ClearSpecularIntensity()0%2100%
ClearEmissiveIntensity()0%2100%
ClearDirectIntensity()0%2100%
Equals(...)0%110100%
Equals(...)0%43.5118057.14%
GetHashCode()0%3061700%
ToString()0%2100%
WriteTo(...)0%3061700%
CalculateSize()0%3061700%
MergeFrom(...)0%6002400%
MergeFrom(...)0%9303000%

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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static MaterialReflection() {
 25      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"));
 66      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          }));
 72    }
 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  {
 193    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)]
 097    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 {
 0102      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 {
 0108      get { return Descriptor; }
 109    }
 110
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 22113    public PBMaterial() {
 114      OnConstruction();
 22115    }
 116
 117    partial void OnConstruction();
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 5121    public PBMaterial(PBMaterial other) : this() {
 5122      switch (other.MaterialCase) {
 123        case MaterialOneofCase.Unlit:
 0124          Unlit = other.Unlit.Clone();
 0125          break;
 126        case MaterialOneofCase.Pbr:
 5127          Pbr = other.Pbr.Clone();
 128          break;
 129      }
 130
 5131      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 5132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public PBMaterial Clone() {
 0137      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 {
 47145      get { return materialCase_ == MaterialOneofCase.Unlit ? (global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial)
 146      set {
 1147        material_ = value;
 1148        materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Unlit;
 1149      }
 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 {
 620157      get { return materialCase_ == MaterialOneofCase.Pbr ? (global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial) mat
 158      set {
 23159        material_ = value;
 23160        materialCase_ = value == null ? MaterialOneofCase.None : MaterialOneofCase.Pbr;
 23161      }
 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 {
 9175      get { return materialCase_; }
 176    }
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void ClearMaterial() {
 0181      materialCase_ = MaterialOneofCase.None;
 0182      material_ = null;
 0183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public override bool Equals(object other) {
 0188      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) {
 11194      if (ReferenceEquals(other, null)) {
 0195        return false;
 196      }
 11197      if (ReferenceEquals(other, this)) {
 0198        return true;
 199      }
 11200      if (!object.Equals(Unlit, other.Unlit)) return false;
 20201      if (!object.Equals(Pbr, other.Pbr)) return false;
 2202      if (MaterialCase != other.MaterialCase) return false;
 2203      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() {
 0209      int hash = 1;
 0210      if (materialCase_ == MaterialOneofCase.Unlit) hash ^= Unlit.GetHashCode();
 0211      if (materialCase_ == MaterialOneofCase.Pbr) hash ^= Pbr.GetHashCode();
 0212      hash ^= (int) materialCase_;
 0213      if (_unknownFields != null) {
 0214        hash ^= _unknownFields.GetHashCode();
 215      }
 0216      return hash;
 217    }
 218
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 221    public override string ToString() {
 0222      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
 0231      if (materialCase_ == MaterialOneofCase.Unlit) {
 0232        output.WriteRawTag(10);
 0233        output.WriteMessage(Unlit);
 234      }
 0235      if (materialCase_ == MaterialOneofCase.Pbr) {
 0236        output.WriteRawTag(18);
 0237        output.WriteMessage(Pbr);
 238      }
 0239      if (_unknownFields != null) {
 0240        _unknownFields.WriteTo(output);
 241      }
 242    #endif
 0243    }
 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() {
 0266      int size = 0;
 0267      if (materialCase_ == MaterialOneofCase.Unlit) {
 0268        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unlit);
 269      }
 0270      if (materialCase_ == MaterialOneofCase.Pbr) {
 0271        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Pbr);
 272      }
 0273      if (_unknownFields != null) {
 0274        size += _unknownFields.CalculateSize();
 275      }
 0276      return size;
 277    }
 278
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public void MergeFrom(PBMaterial other) {
 0282      if (other == null) {
 0283        return;
 284      }
 0285      switch (other.MaterialCase) {
 286        case MaterialOneofCase.Unlit:
 0287          if (Unlit == null) {
 0288            Unlit = new global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial();
 289          }
 0290          Unlit.MergeFrom(other.Unlit);
 0291          break;
 292        case MaterialOneofCase.Pbr:
 0293          if (Pbr == null) {
 0294            Pbr = new global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial();
 295          }
 0296          Pbr.MergeFrom(other.Pbr);
 297          break;
 298      }
 299
 0300      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0301    }
 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;
 0310      while ((tag = input.ReadTag()) != 0) {
 311        switch(tag) {
 312          default:
 0313            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0314            break;
 315          case 10: {
 0316            global::DCL.ECSComponents.PBMaterial.Types.UnlitMaterial subBuilder = new global::DCL.ECSComponents.PBMateri
 0317            if (materialCase_ == MaterialOneofCase.Unlit) {
 0318              subBuilder.MergeFrom(Unlit);
 319            }
 0320            input.ReadMessage(subBuilder);
 0321            Unlit = subBuilder;
 0322            break;
 323          }
 324          case 18: {
 0325            global::DCL.ECSComponents.PBMaterial.Types.PbrMaterial subBuilder = new global::DCL.ECSComponents.PBMaterial
 0326            if (materialCase_ == MaterialOneofCase.Pbr) {
 0327              subBuilder.MergeFrom(Pbr);
 328            }
 0329            input.ReadMessage(subBuilder);
 0330            Pbr = subBuilder;
 331            break;
 332          }
 333        }
 334      }
 335    #endif
 0336    }
 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      {
 1381        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)]
 0386        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 {
 0391          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 {
 0397          get { return Descriptor; }
 398        }
 399
 400        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 401        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1402        public UnlitMaterial() {
 403          OnConstruction();
 1404        }
 405
 406        partial void OnConstruction();
 407
 408        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 409        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0410        public UnlitMaterial(UnlitMaterial other) : this() {
 0411          _hasBits0 = other._hasBits0;
 0412          texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 0413          alphaTest_ = other.alphaTest_;
 0414          castShadows_ = other.castShadows_;
 0415          diffuseColor_ = other.diffuseColor_ != null ? other.diffuseColor_.Clone() : null;
 0416          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0417        }
 418
 419        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 420        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 421        public UnlitMaterial Clone() {
 0422          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 {
 1434          get { return texture_; }
 435          set {
 1436            texture_ = value;
 1437          }
 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 {
 0449          get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 450          set {
 0451            _hasBits0 |= 1;
 0452            alphaTest_ = value;
 0453          }
 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 {
 1459          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() {
 0465          _hasBits0 &= ~1;
 0466        }
 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 {
 0477          get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 478          set {
 0479            _hasBits0 |= 2;
 0480            castShadows_ = value;
 0481          }
 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 {
 0487          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() {
 0493          _hasBits0 &= ~2;
 0494        }
 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 {
 1505          get { return diffuseColor_; }
 506          set {
 0507            diffuseColor_ = value;
 0508          }
 509        }
 510
 511        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 512        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 513        public override bool Equals(object other) {
 0514          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) {
 0520          if (ReferenceEquals(other, null)) {
 0521            return false;
 522          }
 0523          if (ReferenceEquals(other, this)) {
 0524            return true;
 525          }
 0526          if (!object.Equals(Texture, other.Texture)) return false;
 0527          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f
 0528          if (CastShadows != other.CastShadows) return false;
 0529          if (!object.Equals(DiffuseColor, other.DiffuseColor)) return false;
 0530          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() {
 0536          int hash = 1;
 0537          if (texture_ != null) hash ^= Texture.GetHashCode();
 0538          if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 0539          if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 0540          if (diffuseColor_ != null) hash ^= DiffuseColor.GetHashCode();
 0541          if (_unknownFields != null) {
 0542            hash ^= _unknownFields.GetHashCode();
 543          }
 0544          return hash;
 545        }
 546
 547        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 548        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 549        public override string ToString() {
 0550          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
 0559          if (texture_ != null) {
 0560            output.WriteRawTag(10);
 0561            output.WriteMessage(Texture);
 562          }
 0563          if (HasAlphaTest) {
 0564            output.WriteRawTag(21);
 0565            output.WriteFloat(AlphaTest);
 566          }
 0567          if (HasCastShadows) {
 0568            output.WriteRawTag(24);
 0569            output.WriteBool(CastShadows);
 570          }
 0571          if (diffuseColor_ != null) {
 0572            output.WriteRawTag(34);
 0573            output.WriteMessage(DiffuseColor);
 574          }
 0575          if (_unknownFields != null) {
 0576            _unknownFields.WriteTo(output);
 577          }
 578        #endif
 0579        }
 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() {
 0610          int size = 0;
 0611          if (texture_ != null) {
 0612            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 613          }
 0614          if (HasAlphaTest) {
 0615            size += 1 + 4;
 616          }
 0617          if (HasCastShadows) {
 0618            size += 1 + 1;
 619          }
 0620          if (diffuseColor_ != null) {
 0621            size += 1 + pb::CodedOutputStream.ComputeMessageSize(DiffuseColor);
 622          }
 0623          if (_unknownFields != null) {
 0624            size += _unknownFields.CalculateSize();
 625          }
 0626          return size;
 627        }
 628
 629        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 630        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 631        public void MergeFrom(UnlitMaterial other) {
 0632          if (other == null) {
 0633            return;
 634          }
 0635          if (other.texture_ != null) {
 0636            if (texture_ == null) {
 0637              Texture = new global::Decentraland.Common.TextureUnion();
 638            }
 0639            Texture.MergeFrom(other.Texture);
 640          }
 0641          if (other.HasAlphaTest) {
 0642            AlphaTest = other.AlphaTest;
 643          }
 0644          if (other.HasCastShadows) {
 0645            CastShadows = other.CastShadows;
 646          }
 0647          if (other.diffuseColor_ != null) {
 0648            if (diffuseColor_ == null) {
 0649              DiffuseColor = new global::Decentraland.Common.Color4();
 650            }
 0651            DiffuseColor.MergeFrom(other.DiffuseColor);
 652          }
 0653          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0654        }
 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;
 0663          while ((tag = input.ReadTag()) != 0) {
 664            switch(tag) {
 665              default:
 0666                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0667                break;
 668              case 10: {
 0669                if (texture_ == null) {
 0670                  Texture = new global::Decentraland.Common.TextureUnion();
 671                }
 0672                input.ReadMessage(Texture);
 0673                break;
 674              }
 675              case 21: {
 0676                AlphaTest = input.ReadFloat();
 0677                break;
 678              }
 679              case 24: {
 0680                CastShadows = input.ReadBool();
 0681                break;
 682              }
 683              case 34: {
 0684                if (diffuseColor_ == null) {
 0685                  DiffuseColor = new global::Decentraland.Common.Color4();
 686                }
 0687                input.ReadMessage(DiffuseColor);
 688                break;
 689              }
 690            }
 691          }
 692        #endif
 0693        }
 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      {
 1739        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)]
 0744        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 {
 0749          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 {
 0755          get { return Descriptor; }
 756        }
 757
 758        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 759        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 23760        public PbrMaterial() {
 761          OnConstruction();
 23762        }
 763
 764        partial void OnConstruction();
 765
 766        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 767        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 5768        public PbrMaterial(PbrMaterial other) : this() {
 5769          _hasBits0 = other._hasBits0;
 5770          texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 5771          alphaTest_ = other.alphaTest_;
 5772          castShadows_ = other.castShadows_;
 5773          alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null;
 5774          emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null;
 5775          bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null;
 5776          albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null;
 5777          emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null;
 5778          reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null;
 5779          transparencyMode_ = other.transparencyMode_;
 5780          metallic_ = other.metallic_;
 5781          roughness_ = other.roughness_;
 5782          specularIntensity_ = other.specularIntensity_;
 5783          emissiveIntensity_ = other.emissiveIntensity_;
 5784          directIntensity_ = other.directIntensity_;
 5785          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 5786        }
 787
 788        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 789        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 790        public PbrMaterial Clone() {
 5791          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 {
 42803          get { return texture_; }
 804          set {
 9805            texture_ = value;
 9806          }
 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 {
 32818          get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 819          set {
 0820            _hasBits0 |= 1;
 0821            alphaTest_ = value;
 0822          }
 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 {
 19828          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() {
 0834          _hasBits0 &= ~1;
 0835        }
 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 {
 32846          get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 847          set {
 0848            _hasBits0 |= 2;
 0849            castShadows_ = value;
 0850          }
 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 {
 19856          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() {
 0862          _hasBits0 &= ~2;
 0863        }
 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 {
 54874          get { return alphaTexture_; }
 875          set {
 0876            alphaTexture_ = value;
 0877          }
 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 {
 54889          get { return emissiveTexture_; }
 890          set {
 0891            emissiveTexture_ = value;
 0892          }
 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 {
 54904          get { return bumpTexture_; }
 905          set {
 0906            bumpTexture_ = value;
 0907          }
 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 {
 35919          get { return albedoColor_; }
 920          set {
 9921            albedoColor_ = value;
 9922          }
 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 {
 23934          get { return emissiveColor_; }
 935          set {
 0936            emissiveColor_ = value;
 0937          }
 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 {
 23949          get { return reflectivityColor_; }
 950          set {
 0951            reflectivityColor_ = value;
 0952          }
 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 {
 8964          get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Material
 965          set {
 0966            _hasBits0 |= 4;
 0967            transparencyMode_ = value;
 0968          }
 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 {
 19974          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() {
 0980          _hasBits0 &= ~4;
 0981        }
 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 {
 8992          get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } }
 993          set {
 0994            _hasBits0 |= 8;
 0995            metallic_ = value;
 0996          }
 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 {
 191002          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() {
 01008          _hasBits0 &= ~8;
 01009        }
 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 {
 81020          get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } }
 1021          set {
 01022            _hasBits0 |= 16;
 01023            roughness_ = value;
 01024          }
 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 {
 191030          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() {
 01036          _hasBits0 &= ~16;
 01037        }
 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 {
 81048          get { if ((_hasBits0 & 32) != 0) { return specularIntensity_; } else { return 0F; } }
 1049          set {
 01050            _hasBits0 |= 32;
 01051            specularIntensity_ = value;
 01052          }
 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 {
 191058          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() {
 01064          _hasBits0 &= ~32;
 01065        }
 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 {
 81076          get { if ((_hasBits0 & 64) != 0) { return emissiveIntensity_; } else { return 0F; } }
 1077          set {
 01078            _hasBits0 |= 64;
 01079            emissiveIntensity_ = value;
 01080          }
 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 {
 191086          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() {
 01092          _hasBits0 &= ~64;
 01093        }
 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 {
 81104          get { if ((_hasBits0 & 128) != 0) { return directIntensity_; } else { return 0F; } }
 1105          set {
 01106            _hasBits0 |= 128;
 01107            directIntensity_ = value;
 01108          }
 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 {
 191114          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() {
 01120          _hasBits0 &= ~128;
 01121        }
 1122
 1123        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1124        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1125        public override bool Equals(object other) {
 111126          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) {
 111132          if (ReferenceEquals(other, null)) {
 01133            return false;
 1134          }
 111135          if (ReferenceEquals(other, this)) {
 01136            return true;
 1137          }
 141138          if (!object.Equals(Texture, other.Texture)) return false;
 81139          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return f
 81140          if (CastShadows != other.CastShadows) return false;
 81141          if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false;
 81142          if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false;
 81143          if (!object.Equals(BumpTexture, other.BumpTexture)) return false;
 141144          if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false;
 21145          if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false;
 21146          if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false;
 21147          if (TransparencyMode != other.TransparencyMode) return false;
 21148          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return fal
 21149          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return f
 21150          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularInte
 21151          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveInte
 21152          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensit
 21153          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() {
 01159          int hash = 1;
 01160          if (texture_ != null) hash ^= Texture.GetHashCode();
 01161          if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 01162          if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 01163          if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode();
 01164          if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode();
 01165          if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode();
 01166          if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode();
 01167          if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode();
 01168          if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode();
 01169          if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode();
 01170          if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic);
 01171          if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness);
 01172          if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Spe
 01173          if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emi
 01174          if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Direc
 01175          if (_unknownFields != null) {
 01176            hash ^= _unknownFields.GetHashCode();
 1177          }
 01178          return hash;
 1179        }
 1180
 1181        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1182        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1183        public override string ToString() {
 01184          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
 01193          if (texture_ != null) {
 01194            output.WriteRawTag(10);
 01195            output.WriteMessage(Texture);
 1196          }
 01197          if (HasAlphaTest) {
 01198            output.WriteRawTag(21);
 01199            output.WriteFloat(AlphaTest);
 1200          }
 01201          if (HasCastShadows) {
 01202            output.WriteRawTag(24);
 01203            output.WriteBool(CastShadows);
 1204          }
 01205          if (alphaTexture_ != null) {
 01206            output.WriteRawTag(34);
 01207            output.WriteMessage(AlphaTexture);
 1208          }
 01209          if (emissiveTexture_ != null) {
 01210            output.WriteRawTag(42);
 01211            output.WriteMessage(EmissiveTexture);
 1212          }
 01213          if (bumpTexture_ != null) {
 01214            output.WriteRawTag(50);
 01215            output.WriteMessage(BumpTexture);
 1216          }
 01217          if (albedoColor_ != null) {
 01218            output.WriteRawTag(58);
 01219            output.WriteMessage(AlbedoColor);
 1220          }
 01221          if (emissiveColor_ != null) {
 01222            output.WriteRawTag(66);
 01223            output.WriteMessage(EmissiveColor);
 1224          }
 01225          if (reflectivityColor_ != null) {
 01226            output.WriteRawTag(74);
 01227            output.WriteMessage(ReflectivityColor);
 1228          }
 01229          if (HasTransparencyMode) {
 01230            output.WriteRawTag(80);
 01231            output.WriteEnum((int) TransparencyMode);
 1232          }
 01233          if (HasMetallic) {
 01234            output.WriteRawTag(93);
 01235            output.WriteFloat(Metallic);
 1236          }
 01237          if (HasRoughness) {
 01238            output.WriteRawTag(101);
 01239            output.WriteFloat(Roughness);
 1240          }
 01241          if (HasSpecularIntensity) {
 01242            output.WriteRawTag(117);
 01243            output.WriteFloat(SpecularIntensity);
 1244          }
 01245          if (HasEmissiveIntensity) {
 01246            output.WriteRawTag(125);
 01247            output.WriteFloat(EmissiveIntensity);
 1248          }
 01249          if (HasDirectIntensity) {
 01250            output.WriteRawTag(133, 1);
 01251            output.WriteFloat(DirectIntensity);
 1252          }
 01253          if (_unknownFields != null) {
 01254            _unknownFields.WriteTo(output);
 1255          }
 1256        #endif
 01257        }
 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() {
 01332          int size = 0;
 01333          if (texture_ != null) {
 01334            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 1335          }
 01336          if (HasAlphaTest) {
 01337            size += 1 + 4;
 1338          }
 01339          if (HasCastShadows) {
 01340            size += 1 + 1;
 1341          }
 01342          if (alphaTexture_ != null) {
 01343            size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture);
 1344          }
 01345          if (emissiveTexture_ != null) {
 01346            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture);
 1347          }
 01348          if (bumpTexture_ != null) {
 01349            size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture);
 1350          }
 01351          if (albedoColor_ != null) {
 01352            size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor);
 1353          }
 01354          if (emissiveColor_ != null) {
 01355            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor);
 1356          }
 01357          if (reflectivityColor_ != null) {
 01358            size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor);
 1359          }
 01360          if (HasTransparencyMode) {
 01361            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode);
 1362          }
 01363          if (HasMetallic) {
 01364            size += 1 + 4;
 1365          }
 01366          if (HasRoughness) {
 01367            size += 1 + 4;
 1368          }
 01369          if (HasSpecularIntensity) {
 01370            size += 1 + 4;
 1371          }
 01372          if (HasEmissiveIntensity) {
 01373            size += 1 + 4;
 1374          }
 01375          if (HasDirectIntensity) {
 01376            size += 2 + 4;
 1377          }
 01378          if (_unknownFields != null) {
 01379            size += _unknownFields.CalculateSize();
 1380          }
 01381          return size;
 1382        }
 1383
 1384        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1385        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1386        public void MergeFrom(PbrMaterial other) {
 01387          if (other == null) {
 01388            return;
 1389          }
 01390          if (other.texture_ != null) {
 01391            if (texture_ == null) {
 01392              Texture = new global::Decentraland.Common.TextureUnion();
 1393            }
 01394            Texture.MergeFrom(other.Texture);
 1395          }
 01396          if (other.HasAlphaTest) {
 01397            AlphaTest = other.AlphaTest;
 1398          }
 01399          if (other.HasCastShadows) {
 01400            CastShadows = other.CastShadows;
 1401          }
 01402          if (other.alphaTexture_ != null) {
 01403            if (alphaTexture_ == null) {
 01404              AlphaTexture = new global::Decentraland.Common.TextureUnion();
 1405            }
 01406            AlphaTexture.MergeFrom(other.AlphaTexture);
 1407          }
 01408          if (other.emissiveTexture_ != null) {
 01409            if (emissiveTexture_ == null) {
 01410              EmissiveTexture = new global::Decentraland.Common.TextureUnion();
 1411            }
 01412            EmissiveTexture.MergeFrom(other.EmissiveTexture);
 1413          }
 01414          if (other.bumpTexture_ != null) {
 01415            if (bumpTexture_ == null) {
 01416              BumpTexture = new global::Decentraland.Common.TextureUnion();
 1417            }
 01418            BumpTexture.MergeFrom(other.BumpTexture);
 1419          }
 01420          if (other.albedoColor_ != null) {
 01421            if (albedoColor_ == null) {
 01422              AlbedoColor = new global::Decentraland.Common.Color4();
 1423            }
 01424            AlbedoColor.MergeFrom(other.AlbedoColor);
 1425          }
 01426          if (other.emissiveColor_ != null) {
 01427            if (emissiveColor_ == null) {
 01428              EmissiveColor = new global::Decentraland.Common.Color3();
 1429            }
 01430            EmissiveColor.MergeFrom(other.EmissiveColor);
 1431          }
 01432          if (other.reflectivityColor_ != null) {
 01433            if (reflectivityColor_ == null) {
 01434              ReflectivityColor = new global::Decentraland.Common.Color3();
 1435            }
 01436            ReflectivityColor.MergeFrom(other.ReflectivityColor);
 1437          }
 01438          if (other.HasTransparencyMode) {
 01439            TransparencyMode = other.TransparencyMode;
 1440          }
 01441          if (other.HasMetallic) {
 01442            Metallic = other.Metallic;
 1443          }
 01444          if (other.HasRoughness) {
 01445            Roughness = other.Roughness;
 1446          }
 01447          if (other.HasSpecularIntensity) {
 01448            SpecularIntensity = other.SpecularIntensity;
 1449          }
 01450          if (other.HasEmissiveIntensity) {
 01451            EmissiveIntensity = other.EmissiveIntensity;
 1452          }
 01453          if (other.HasDirectIntensity) {
 01454            DirectIntensity = other.DirectIntensity;
 1455          }
 01456          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 01457        }
 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;
 01466          while ((tag = input.ReadTag()) != 0) {
 1467            switch(tag) {
 1468              default:
 01469                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 01470                break;
 1471              case 10: {
 01472                if (texture_ == null) {
 01473                  Texture = new global::Decentraland.Common.TextureUnion();
 1474                }
 01475                input.ReadMessage(Texture);
 01476                break;
 1477              }
 1478              case 21: {
 01479                AlphaTest = input.ReadFloat();
 01480                break;
 1481              }
 1482              case 24: {
 01483                CastShadows = input.ReadBool();
 01484                break;
 1485              }
 1486              case 34: {
 01487                if (alphaTexture_ == null) {
 01488                  AlphaTexture = new global::Decentraland.Common.TextureUnion();
 1489                }
 01490                input.ReadMessage(AlphaTexture);
 01491                break;
 1492              }
 1493              case 42: {
 01494                if (emissiveTexture_ == null) {
 01495                  EmissiveTexture = new global::Decentraland.Common.TextureUnion();
 1496                }
 01497                input.ReadMessage(EmissiveTexture);
 01498                break;
 1499              }
 1500              case 50: {
 01501                if (bumpTexture_ == null) {
 01502                  BumpTexture = new global::Decentraland.Common.TextureUnion();
 1503                }
 01504                input.ReadMessage(BumpTexture);
 01505                break;
 1506              }
 1507              case 58: {
 01508                if (albedoColor_ == null) {
 01509                  AlbedoColor = new global::Decentraland.Common.Color4();
 1510                }
 01511                input.ReadMessage(AlbedoColor);
 01512                break;
 1513              }
 1514              case 66: {
 01515                if (emissiveColor_ == null) {
 01516                  EmissiveColor = new global::Decentraland.Common.Color3();
 1517                }
 01518                input.ReadMessage(EmissiveColor);
 01519                break;
 1520              }
 1521              case 74: {
 01522                if (reflectivityColor_ == null) {
 01523                  ReflectivityColor = new global::Decentraland.Common.Color3();
 1524                }
 01525                input.ReadMessage(ReflectivityColor);
 01526                break;
 1527              }
 1528              case 80: {
 01529                TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum();
 01530                break;
 1531              }
 1532              case 93: {
 01533                Metallic = input.ReadFloat();
 01534                break;
 1535              }
 1536              case 101: {
 01537                Roughness = input.ReadFloat();
 01538                break;
 1539              }
 1540              case 117: {
 01541                SpecularIntensity = input.ReadFloat();
 01542                break;
 1543              }
 1544              case 125: {
 01545                EmissiveIntensity = input.ReadFloat();
 01546                break;
 1547              }
 1548              case 133: {
 01549                DirectIntensity = input.ReadFloat();
 1550                break;
 1551              }
 1552            }
 1553          }
 1554        #endif
 01555        }
 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

PBMaterial()
Parser()
Descriptor()
get_Descriptor()
PBMaterial()
PBMaterial(DCL.ECSComponents.PBMaterial)
Clone()
Unlit()
Unlit(DCL.ECSComponents.PBMaterial/Types/UnlitMaterial)
Pbr()
Pbr(DCL.ECSComponents.PBMaterial/Types/PbrMaterial)
MaterialCase()
ClearMaterial()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial)
MergeFrom(Google.Protobuf.CodedInputStream)
UnlitMaterial()
Parser()
Descriptor()
get_Descriptor()
UnlitMaterial()
UnlitMaterial(DCL.ECSComponents.PBMaterial/Types/UnlitMaterial)
Clone()
Texture()
Texture(Decentraland.Common.TextureUnion)
AlphaTest()
AlphaTest(System.Single)
HasAlphaTest()
ClearAlphaTest()
CastShadows()
CastShadows(System.Boolean)
HasCastShadows()
ClearCastShadows()
DiffuseColor()
DiffuseColor(Decentraland.Common.Color4)
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial/Types/UnlitMaterial)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial/Types/UnlitMaterial)
MergeFrom(Google.Protobuf.CodedInputStream)
PbrMaterial()
Parser()
Descriptor()
get_Descriptor()
PbrMaterial()
PbrMaterial(DCL.ECSComponents.PBMaterial/Types/PbrMaterial)
Clone()
Texture()
Texture(Decentraland.Common.TextureUnion)
AlphaTest()
AlphaTest(System.Single)
HasAlphaTest()
ClearAlphaTest()
CastShadows()
CastShadows(System.Boolean)
HasCastShadows()
ClearCastShadows()
AlphaTexture()
AlphaTexture(Decentraland.Common.TextureUnion)
EmissiveTexture()
EmissiveTexture(Decentraland.Common.TextureUnion)
BumpTexture()
BumpTexture(Decentraland.Common.TextureUnion)
AlbedoColor()
AlbedoColor(Decentraland.Common.Color4)
EmissiveColor()
EmissiveColor(Decentraland.Common.Color3)
ReflectivityColor()
ReflectivityColor(Decentraland.Common.Color3)
TransparencyMode()
TransparencyMode(DCL.ECSComponents.MaterialTransparencyMode)
HasTransparencyMode()
ClearTransparencyMode()
Metallic()
Metallic(System.Single)
HasMetallic()
ClearMetallic()
Roughness()
Roughness(System.Single)
HasRoughness()
ClearRoughness()
SpecularIntensity()
SpecularIntensity(System.Single)
HasSpecularIntensity()
ClearSpecularIntensity()
EmissiveIntensity()
EmissiveIntensity(System.Single)
HasEmissiveIntensity()
ClearEmissiveIntensity()
DirectIntensity()
DirectIntensity(System.Single)
HasDirectIntensity()
ClearDirectIntensity()
Equals(System.Object)
Equals(DCL.ECSComponents.PBMaterial/Types/PbrMaterial)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBMaterial/Types/PbrMaterial)
MergeFrom(Google.Protobuf.CodedInputStream)