< Summary

Class:DCL.ECSComponents.MaterialReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Material.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:1378
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Material.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/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 ecs/components/Material.proto</summary>
 15  public static partial class MaterialReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/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            "Ch1lY3MvY29tcG9uZW50cy9NYXRlcmlhbC5wcm90bxIQZGVjZW50cmFsYW5k",
 28            "LmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yMy5wcm90byKICQoK",
 29            "UEJNYXRlcmlhbBI6Cgd0ZXh0dXJlGAEgASgLMiQuZGVjZW50cmFsYW5kLmVj",
 30            "cy5QQk1hdGVyaWFsLlRleHR1cmVIAIgBARIWCglhbHBoYVRlc3QYAiABKAJI",
 31            "AYgBARIYCgtjYXN0U2hhZG93cxgDIAEoCEgCiAEBEj8KDGFscGhhVGV4dHVy",
 32            "ZRgEIAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJNYXRlcmlhbC5UZXh0dXJl",
 33            "SAOIAQESQgoPZW1pc3NpdmVUZXh0dXJlGAUgASgLMiQuZGVjZW50cmFsYW5k",
 34            "LmVjcy5QQk1hdGVyaWFsLlRleHR1cmVIBIgBARI+CgtidW1wVGV4dHVyZRgG",
 35            "IAEoCzIkLmRlY2VudHJhbGFuZC5lY3MuUEJNYXRlcmlhbC5UZXh0dXJlSAWI",
 36            "AQESMgoLYWxiZWRvQ29sb3IYByABKAsyGC5kZWNlbnRyYWxhbmQuZWNzLkNv",
 37            "bG9yM0gGiAEBEjQKDWVtaXNzaXZlQ29sb3IYCCABKAsyGC5kZWNlbnRyYWxh",
 38            "bmQuZWNzLkNvbG9yM0gHiAEBEjgKEXJlZmxlY3Rpdml0eUNvbG9yGAkgASgL",
 39            "MhguZGVjZW50cmFsYW5kLmVjcy5Db2xvcjNICIgBARJBChB0cmFuc3BhcmVu",
 40            "Y3lNb2RlGAogASgOMiIuZGVjZW50cmFsYW5kLmVjcy5UcmFuc3BhcmVuY3lN",
 41            "b2RlSAmIAQESFQoIbWV0YWxsaWMYCyABKAJICogBARIWCglyb3VnaG5lc3MY",
 42            "DCABKAJIC4gBARIXCgpnbG9zc2luZXNzGA0gASgCSAyIAQESHgoRc3BlY3Vs",
 43            "YXJJbnRlbnNpdHkYDiABKAJIDYgBARIeChFlbWlzc2l2ZUludGVuc2l0eRgP",
 44            "IAEoAkgOiAEBEhwKD2RpcmVjdEludGVuc2l0eRgQIAEoAkgPiAEBGqMBCgdU",
 45            "ZXh0dXJlEgsKA3NyYxgBIAEoCRI4Cgh3cmFwTW9kZRgCIAEoDjIhLmRlY2Vu",
 46            "dHJhbGFuZC5lY3MuVGV4dHVyZVdyYXBNb2RlSACIAQESNQoKZmlsdGVyTW9k",
 47            "ZRgDIAEoDjIcLmRlY2VudHJhbGFuZC5lY3MuRmlsdGVyTW9kZUgBiAEBQgsK",
 48            "CV93cmFwTW9kZUINCgtfZmlsdGVyTW9kZUIKCghfdGV4dHVyZUIMCgpfYWxw",
 49            "aGFUZXN0Qg4KDF9jYXN0U2hhZG93c0IPCg1fYWxwaGFUZXh0dXJlQhIKEF9l",
 50            "bWlzc2l2ZVRleHR1cmVCDgoMX2J1bXBUZXh0dXJlQg4KDF9hbGJlZG9Db2xv",
 51            "ckIQCg5fZW1pc3NpdmVDb2xvckIUChJfcmVmbGVjdGl2aXR5Q29sb3JCEwoR",
 52            "X3RyYW5zcGFyZW5jeU1vZGVCCwoJX21ldGFsbGljQgwKCl9yb3VnaG5lc3NC",
 53            "DQoLX2dsb3NzaW5lc3NCFAoSX3NwZWN1bGFySW50ZW5zaXR5QhQKEl9lbWlz",
 54            "c2l2ZUludGVuc2l0eUISChBfZGlyZWN0SW50ZW5zaXR5KkQKD1RleHR1cmVX",
 55            "cmFwTW9kZRIKCgZSZXBlYXQQABIJCgVDbGFtcBABEgoKBk1pcnJvchACEg4K",
 56            "Ck1pcnJvck9uY2UQAyo0CgpGaWx0ZXJNb2RlEgkKBVBvaW50EAASDAoIQmls",
 57            "aW5lYXIQARINCglUcmlsaW5lYXIQAipjChBUcmFuc3BhcmVuY3lNb2RlEgoK",
 58            "Bk9wYXF1ZRAAEg0KCUFscGhhVGVzdBABEg4KCkFscGhhQmxlbmQQAhIaChZB",
 59            "bHBoYVRlc3RBbmRBbHBoYUJsZW5kEAMSCAoEQXV0bxAEQhSqAhFEQ0wuRUNT",
 60            "Q29tcG9uZW50c2IGcHJvdG8z"));
 061      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 62          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Color3Reflection.Descriptor, },
 63          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextureWrapMode), typeof(global::DCL.ECS
 64            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate
 65          }));
 066    }
 67    #endregion
 68
 69  }
 70  #region Enums
 71  public enum TextureWrapMode {
 72    [pbr::OriginalName("Repeat")] Repeat = 0,
 73    [pbr::OriginalName("Clamp")] Clamp = 1,
 74    [pbr::OriginalName("Mirror")] Mirror = 2,
 75    [pbr::OriginalName("MirrorOnce")] MirrorOnce = 3,
 76  }
 77
 78  public enum FilterMode {
 79    [pbr::OriginalName("Point")] Point = 0,
 80    [pbr::OriginalName("Bilinear")] Bilinear = 1,
 81    [pbr::OriginalName("Trilinear")] Trilinear = 2,
 82  }
 83
 84  public enum TransparencyMode {
 85    [pbr::OriginalName("Opaque")] Opaque = 0,
 86    [pbr::OriginalName("AlphaTest")] AlphaTest = 1,
 87    [pbr::OriginalName("AlphaBlend")] AlphaBlend = 2,
 88    [pbr::OriginalName("AlphaTestAndAlphaBlend")] AlphaTestAndAlphaBlend = 3,
 89    [pbr::OriginalName("Auto")] Auto = 4,
 90  }
 91
 92  #endregion
 93
 94  #region Messages
 95  public sealed partial class PBMaterial : pb::IMessage<PBMaterial>
 96  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 97      , pb::IBufferMessage
 98  #endif
 99  {
 100    private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri
 101    private pb::UnknownFieldSet _unknownFields;
 102    private int _hasBits0;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } }
 106
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public static pbr::MessageDescriptor Descriptor {
 110      get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; }
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    pbr::MessageDescriptor pb::IMessage.Descriptor {
 116      get { return Descriptor; }
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public PBMaterial() {
 122      OnConstruction();
 123    }
 124
 125    partial void OnConstruction();
 126
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 129    public PBMaterial(PBMaterial other) : this() {
 130      _hasBits0 = other._hasBits0;
 131      texture_ = other.texture_ != null ? other.texture_.Clone() : null;
 132      alphaTest_ = other.alphaTest_;
 133      castShadows_ = other.castShadows_;
 134      alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null;
 135      emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null;
 136      bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null;
 137      albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null;
 138      emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null;
 139      reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null;
 140      transparencyMode_ = other.transparencyMode_;
 141      metallic_ = other.metallic_;
 142      roughness_ = other.roughness_;
 143      glossiness_ = other.glossiness_;
 144      specularIntensity_ = other.specularIntensity_;
 145      emissiveIntensity_ = other.emissiveIntensity_;
 146      directIntensity_ = other.directIntensity_;
 147      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 148    }
 149
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public PBMaterial Clone() {
 153      return new PBMaterial(this);
 154    }
 155
 156    /// <summary>Field number for the "texture" field.</summary>
 157    public const int TextureFieldNumber = 1;
 158    private global::DCL.ECSComponents.PBMaterial.Types.Texture texture_;
 159    /// <summary>
 160    /// default = null
 161    /// </summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public global::DCL.ECSComponents.PBMaterial.Types.Texture Texture {
 165      get { return texture_; }
 166      set {
 167        texture_ = value;
 168      }
 169    }
 170
 171    /// <summary>Field number for the "alphaTest" field.</summary>
 172    public const int AlphaTestFieldNumber = 2;
 173    private float alphaTest_;
 174    /// <summary>
 175    /// default = 0.5. range value: from 0 to 1
 176    /// </summary>
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public float AlphaTest {
 180      get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } }
 181      set {
 182        _hasBits0 |= 1;
 183        alphaTest_ = value;
 184      }
 185    }
 186    /// <summary>Gets whether the "alphaTest" field is set</summary>
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public bool HasAlphaTest {
 190      get { return (_hasBits0 & 1) != 0; }
 191    }
 192    /// <summary>Clears the value of the "alphaTest" field</summary>
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public void ClearAlphaTest() {
 196      _hasBits0 &= ~1;
 197    }
 198
 199    /// <summary>Field number for the "castShadows" field.</summary>
 200    public const int CastShadowsFieldNumber = 3;
 201    private bool castShadows_;
 202    /// <summary>
 203    /// default =  true
 204    /// </summary>
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public bool CastShadows {
 208      get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } }
 209      set {
 210        _hasBits0 |= 2;
 211        castShadows_ = value;
 212      }
 213    }
 214    /// <summary>Gets whether the "castShadows" field is set</summary>
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    public bool HasCastShadows {
 218      get { return (_hasBits0 & 2) != 0; }
 219    }
 220    /// <summary>Clears the value of the "castShadows" field</summary>
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public void ClearCastShadows() {
 224      _hasBits0 &= ~2;
 225    }
 226
 227    /// <summary>Field number for the "alphaTexture" field.</summary>
 228    public const int AlphaTextureFieldNumber = 4;
 229    private global::DCL.ECSComponents.PBMaterial.Types.Texture alphaTexture_;
 230    /// <summary>
 231    /// default = null
 232    /// </summary>
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    public global::DCL.ECSComponents.PBMaterial.Types.Texture AlphaTexture {
 236      get { return alphaTexture_; }
 237      set {
 238        alphaTexture_ = value;
 239      }
 240    }
 241
 242    /// <summary>Field number for the "emissiveTexture" field.</summary>
 243    public const int EmissiveTextureFieldNumber = 5;
 244    private global::DCL.ECSComponents.PBMaterial.Types.Texture emissiveTexture_;
 245    /// <summary>
 246    /// default = null
 247    /// </summary>
 248    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 249    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 250    public global::DCL.ECSComponents.PBMaterial.Types.Texture EmissiveTexture {
 251      get { return emissiveTexture_; }
 252      set {
 253        emissiveTexture_ = value;
 254      }
 255    }
 256
 257    /// <summary>Field number for the "bumpTexture" field.</summary>
 258    public const int BumpTextureFieldNumber = 6;
 259    private global::DCL.ECSComponents.PBMaterial.Types.Texture bumpTexture_;
 260    /// <summary>
 261    /// default = null
 262    /// </summary>
 263    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265    public global::DCL.ECSComponents.PBMaterial.Types.Texture BumpTexture {
 266      get { return bumpTexture_; }
 267      set {
 268        bumpTexture_ = value;
 269      }
 270    }
 271
 272    /// <summary>Field number for the "albedoColor" field.</summary>
 273    public const int AlbedoColorFieldNumber = 7;
 274    private global::DCL.ECSComponents.Color3 albedoColor_;
 275    /// <summary>
 276    /// default = white;
 277    /// </summary>
 278    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 279    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 280    public global::DCL.ECSComponents.Color3 AlbedoColor {
 281      get { return albedoColor_; }
 282      set {
 283        albedoColor_ = value;
 284      }
 285    }
 286
 287    /// <summary>Field number for the "emissiveColor" field.</summary>
 288    public const int EmissiveColorFieldNumber = 8;
 289    private global::DCL.ECSComponents.Color3 emissiveColor_;
 290    /// <summary>
 291    /// default = black;
 292    /// </summary>
 293    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 294    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 295    public global::DCL.ECSComponents.Color3 EmissiveColor {
 296      get { return emissiveColor_; }
 297      set {
 298        emissiveColor_ = value;
 299      }
 300    }
 301
 302    /// <summary>Field number for the "reflectivityColor" field.</summary>
 303    public const int ReflectivityColorFieldNumber = 9;
 304    private global::DCL.ECSComponents.Color3 reflectivityColor_;
 305    /// <summary>
 306    /// default = white;
 307    /// </summary>
 308    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 309    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 310    public global::DCL.ECSComponents.Color3 ReflectivityColor {
 311      get { return reflectivityColor_; }
 312      set {
 313        reflectivityColor_ = value;
 314      }
 315    }
 316
 317    /// <summary>Field number for the "transparencyMode" field.</summary>
 318    public const int TransparencyModeFieldNumber = 10;
 319    private global::DCL.ECSComponents.TransparencyMode transparencyMode_;
 320    /// <summary>
 321    /// default = TransparencyMode.Auto
 322    /// </summary>
 323    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 324    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 325    public global::DCL.ECSComponents.TransparencyMode TransparencyMode {
 326      get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.Transparency
 327      set {
 328        _hasBits0 |= 4;
 329        transparencyMode_ = value;
 330      }
 331    }
 332    /// <summary>Gets whether the "transparencyMode" field is set</summary>
 333    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 334    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 335    public bool HasTransparencyMode {
 336      get { return (_hasBits0 & 4) != 0; }
 337    }
 338    /// <summary>Clears the value of the "transparencyMode" field</summary>
 339    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 340    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 341    public void ClearTransparencyMode() {
 342      _hasBits0 &= ~4;
 343    }
 344
 345    /// <summary>Field number for the "metallic" field.</summary>
 346    public const int MetallicFieldNumber = 11;
 347    private float metallic_;
 348    /// <summary>
 349    /// default = 0.5
 350    /// </summary>
 351    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353    public float Metallic {
 354      get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } }
 355      set {
 356        _hasBits0 |= 8;
 357        metallic_ = value;
 358      }
 359    }
 360    /// <summary>Gets whether the "metallic" field is set</summary>
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public bool HasMetallic {
 364      get { return (_hasBits0 & 8) != 0; }
 365    }
 366    /// <summary>Clears the value of the "metallic" field</summary>
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public void ClearMetallic() {
 370      _hasBits0 &= ~8;
 371    }
 372
 373    /// <summary>Field number for the "roughness" field.</summary>
 374    public const int RoughnessFieldNumber = 12;
 375    private float roughness_;
 376    /// <summary>
 377    /// default = 0.5
 378    /// </summary>
 379    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 380    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 381    public float Roughness {
 382      get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } }
 383      set {
 384        _hasBits0 |= 16;
 385        roughness_ = value;
 386      }
 387    }
 388    /// <summary>Gets whether the "roughness" field is set</summary>
 389    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 390    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 391    public bool HasRoughness {
 392      get { return (_hasBits0 & 16) != 0; }
 393    }
 394    /// <summary>Clears the value of the "roughness" field</summary>
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397    public void ClearRoughness() {
 398      _hasBits0 &= ~16;
 399    }
 400
 401    /// <summary>Field number for the "glossiness" field.</summary>
 402    public const int GlossinessFieldNumber = 13;
 403    private float glossiness_;
 404    /// <summary>
 405    /// default = 1
 406    /// </summary>
 407    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 408    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 409    public float Glossiness {
 410      get { if ((_hasBits0 & 32) != 0) { return glossiness_; } else { return 0F; } }
 411      set {
 412        _hasBits0 |= 32;
 413        glossiness_ = value;
 414      }
 415    }
 416    /// <summary>Gets whether the "glossiness" field is set</summary>
 417    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419    public bool HasGlossiness {
 420      get { return (_hasBits0 & 32) != 0; }
 421    }
 422    /// <summary>Clears the value of the "glossiness" field</summary>
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 425    public void ClearGlossiness() {
 426      _hasBits0 &= ~32;
 427    }
 428
 429    /// <summary>Field number for the "specularIntensity" field.</summary>
 430    public const int SpecularIntensityFieldNumber = 14;
 431    private float specularIntensity_;
 432    /// <summary>
 433    /// default = 1
 434    /// </summary>
 435    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 436    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 437    public float SpecularIntensity {
 438      get { if ((_hasBits0 & 64) != 0) { return specularIntensity_; } else { return 0F; } }
 439      set {
 440        _hasBits0 |= 64;
 441        specularIntensity_ = value;
 442      }
 443    }
 444    /// <summary>Gets whether the "specularIntensity" field is set</summary>
 445    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 446    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 447    public bool HasSpecularIntensity {
 448      get { return (_hasBits0 & 64) != 0; }
 449    }
 450    /// <summary>Clears the value of the "specularIntensity" field</summary>
 451    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 452    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453    public void ClearSpecularIntensity() {
 454      _hasBits0 &= ~64;
 455    }
 456
 457    /// <summary>Field number for the "emissiveIntensity" field.</summary>
 458    public const int EmissiveIntensityFieldNumber = 15;
 459    private float emissiveIntensity_;
 460    /// <summary>
 461    /// default = 2
 462    /// </summary>
 463    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 464    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 465    public float EmissiveIntensity {
 466      get { if ((_hasBits0 & 128) != 0) { return emissiveIntensity_; } else { return 0F; } }
 467      set {
 468        _hasBits0 |= 128;
 469        emissiveIntensity_ = value;
 470      }
 471    }
 472    /// <summary>Gets whether the "emissiveIntensity" field is set</summary>
 473    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 474    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 475    public bool HasEmissiveIntensity {
 476      get { return (_hasBits0 & 128) != 0; }
 477    }
 478    /// <summary>Clears the value of the "emissiveIntensity" field</summary>
 479    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 480    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 481    public void ClearEmissiveIntensity() {
 482      _hasBits0 &= ~128;
 483    }
 484
 485    /// <summary>Field number for the "directIntensity" field.</summary>
 486    public const int DirectIntensityFieldNumber = 16;
 487    private float directIntensity_;
 488    /// <summary>
 489    /// default = 1
 490    /// </summary>
 491    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 492    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 493    public float DirectIntensity {
 494      get { if ((_hasBits0 & 256) != 0) { return directIntensity_; } else { return 0F; } }
 495      set {
 496        _hasBits0 |= 256;
 497        directIntensity_ = value;
 498      }
 499    }
 500    /// <summary>Gets whether the "directIntensity" field is set</summary>
 501    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 502    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 503    public bool HasDirectIntensity {
 504      get { return (_hasBits0 & 256) != 0; }
 505    }
 506    /// <summary>Clears the value of the "directIntensity" field</summary>
 507    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 508    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 509    public void ClearDirectIntensity() {
 510      _hasBits0 &= ~256;
 511    }
 512
 513    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 514    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 515    public override bool Equals(object other) {
 516      return Equals(other as PBMaterial);
 517    }
 518
 519    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 520    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 521    public bool Equals(PBMaterial other) {
 522      if (ReferenceEquals(other, null)) {
 523        return false;
 524      }
 525      if (ReferenceEquals(other, this)) {
 526        return true;
 527      }
 528      if (!object.Equals(Texture, other.Texture)) return false;
 529      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return false
 530      if (CastShadows != other.CastShadows) return false;
 531      if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false;
 532      if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false;
 533      if (!object.Equals(BumpTexture, other.BumpTexture)) return false;
 534      if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false;
 535      if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false;
 536      if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false;
 537      if (TransparencyMode != other.TransparencyMode) return false;
 538      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return false;
 539      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return false
 540      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Glossiness, other.Glossiness)) return fal
 541      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularIntensit
 542      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveIntensit
 543      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensity)) 
 544      return Equals(_unknownFields, other._unknownFields);
 545    }
 546
 547    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 548    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 549    public override int GetHashCode() {
 550      int hash = 1;
 551      if (texture_ != null) hash ^= Texture.GetHashCode();
 552      if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest);
 553      if (HasCastShadows) hash ^= CastShadows.GetHashCode();
 554      if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode();
 555      if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode();
 556      if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode();
 557      if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode();
 558      if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode();
 559      if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode();
 560      if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode();
 561      if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic);
 562      if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness);
 563      if (HasGlossiness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Glossiness);
 564      if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Specula
 565      if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emissiv
 566      if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DirectInt
 567      if (_unknownFields != null) {
 568        hash ^= _unknownFields.GetHashCode();
 569      }
 570      return hash;
 571    }
 572
 573    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 574    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 575    public override string ToString() {
 576      return pb::JsonFormatter.ToDiagnosticString(this);
 577    }
 578
 579    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 580    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 581    public void WriteTo(pb::CodedOutputStream output) {
 582    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 583      output.WriteRawMessage(this);
 584    #else
 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 (alphaTexture_ != null) {
 598        output.WriteRawTag(34);
 599        output.WriteMessage(AlphaTexture);
 600      }
 601      if (emissiveTexture_ != null) {
 602        output.WriteRawTag(42);
 603        output.WriteMessage(EmissiveTexture);
 604      }
 605      if (bumpTexture_ != null) {
 606        output.WriteRawTag(50);
 607        output.WriteMessage(BumpTexture);
 608      }
 609      if (albedoColor_ != null) {
 610        output.WriteRawTag(58);
 611        output.WriteMessage(AlbedoColor);
 612      }
 613      if (emissiveColor_ != null) {
 614        output.WriteRawTag(66);
 615        output.WriteMessage(EmissiveColor);
 616      }
 617      if (reflectivityColor_ != null) {
 618        output.WriteRawTag(74);
 619        output.WriteMessage(ReflectivityColor);
 620      }
 621      if (HasTransparencyMode) {
 622        output.WriteRawTag(80);
 623        output.WriteEnum((int) TransparencyMode);
 624      }
 625      if (HasMetallic) {
 626        output.WriteRawTag(93);
 627        output.WriteFloat(Metallic);
 628      }
 629      if (HasRoughness) {
 630        output.WriteRawTag(101);
 631        output.WriteFloat(Roughness);
 632      }
 633      if (HasGlossiness) {
 634        output.WriteRawTag(109);
 635        output.WriteFloat(Glossiness);
 636      }
 637      if (HasSpecularIntensity) {
 638        output.WriteRawTag(117);
 639        output.WriteFloat(SpecularIntensity);
 640      }
 641      if (HasEmissiveIntensity) {
 642        output.WriteRawTag(125);
 643        output.WriteFloat(EmissiveIntensity);
 644      }
 645      if (HasDirectIntensity) {
 646        output.WriteRawTag(133, 1);
 647        output.WriteFloat(DirectIntensity);
 648      }
 649      if (_unknownFields != null) {
 650        _unknownFields.WriteTo(output);
 651      }
 652    #endif
 653    }
 654
 655    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 656    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 657    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 658    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 659      if (texture_ != null) {
 660        output.WriteRawTag(10);
 661        output.WriteMessage(Texture);
 662      }
 663      if (HasAlphaTest) {
 664        output.WriteRawTag(21);
 665        output.WriteFloat(AlphaTest);
 666      }
 667      if (HasCastShadows) {
 668        output.WriteRawTag(24);
 669        output.WriteBool(CastShadows);
 670      }
 671      if (alphaTexture_ != null) {
 672        output.WriteRawTag(34);
 673        output.WriteMessage(AlphaTexture);
 674      }
 675      if (emissiveTexture_ != null) {
 676        output.WriteRawTag(42);
 677        output.WriteMessage(EmissiveTexture);
 678      }
 679      if (bumpTexture_ != null) {
 680        output.WriteRawTag(50);
 681        output.WriteMessage(BumpTexture);
 682      }
 683      if (albedoColor_ != null) {
 684        output.WriteRawTag(58);
 685        output.WriteMessage(AlbedoColor);
 686      }
 687      if (emissiveColor_ != null) {
 688        output.WriteRawTag(66);
 689        output.WriteMessage(EmissiveColor);
 690      }
 691      if (reflectivityColor_ != null) {
 692        output.WriteRawTag(74);
 693        output.WriteMessage(ReflectivityColor);
 694      }
 695      if (HasTransparencyMode) {
 696        output.WriteRawTag(80);
 697        output.WriteEnum((int) TransparencyMode);
 698      }
 699      if (HasMetallic) {
 700        output.WriteRawTag(93);
 701        output.WriteFloat(Metallic);
 702      }
 703      if (HasRoughness) {
 704        output.WriteRawTag(101);
 705        output.WriteFloat(Roughness);
 706      }
 707      if (HasGlossiness) {
 708        output.WriteRawTag(109);
 709        output.WriteFloat(Glossiness);
 710      }
 711      if (HasSpecularIntensity) {
 712        output.WriteRawTag(117);
 713        output.WriteFloat(SpecularIntensity);
 714      }
 715      if (HasEmissiveIntensity) {
 716        output.WriteRawTag(125);
 717        output.WriteFloat(EmissiveIntensity);
 718      }
 719      if (HasDirectIntensity) {
 720        output.WriteRawTag(133, 1);
 721        output.WriteFloat(DirectIntensity);
 722      }
 723      if (_unknownFields != null) {
 724        _unknownFields.WriteTo(ref output);
 725      }
 726    }
 727    #endif
 728
 729    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 730    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 731    public int CalculateSize() {
 732      int size = 0;
 733      if (texture_ != null) {
 734        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture);
 735      }
 736      if (HasAlphaTest) {
 737        size += 1 + 4;
 738      }
 739      if (HasCastShadows) {
 740        size += 1 + 1;
 741      }
 742      if (alphaTexture_ != null) {
 743        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture);
 744      }
 745      if (emissiveTexture_ != null) {
 746        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture);
 747      }
 748      if (bumpTexture_ != null) {
 749        size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture);
 750      }
 751      if (albedoColor_ != null) {
 752        size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor);
 753      }
 754      if (emissiveColor_ != null) {
 755        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor);
 756      }
 757      if (reflectivityColor_ != null) {
 758        size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor);
 759      }
 760      if (HasTransparencyMode) {
 761        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode);
 762      }
 763      if (HasMetallic) {
 764        size += 1 + 4;
 765      }
 766      if (HasRoughness) {
 767        size += 1 + 4;
 768      }
 769      if (HasGlossiness) {
 770        size += 1 + 4;
 771      }
 772      if (HasSpecularIntensity) {
 773        size += 1 + 4;
 774      }
 775      if (HasEmissiveIntensity) {
 776        size += 1 + 4;
 777      }
 778      if (HasDirectIntensity) {
 779        size += 2 + 4;
 780      }
 781      if (_unknownFields != null) {
 782        size += _unknownFields.CalculateSize();
 783      }
 784      return size;
 785    }
 786
 787    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 788    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 789    public void MergeFrom(PBMaterial other) {
 790      if (other == null) {
 791        return;
 792      }
 793      if (other.texture_ != null) {
 794        if (texture_ == null) {
 795          Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 796        }
 797        Texture.MergeFrom(other.Texture);
 798      }
 799      if (other.HasAlphaTest) {
 800        AlphaTest = other.AlphaTest;
 801      }
 802      if (other.HasCastShadows) {
 803        CastShadows = other.CastShadows;
 804      }
 805      if (other.alphaTexture_ != null) {
 806        if (alphaTexture_ == null) {
 807          AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 808        }
 809        AlphaTexture.MergeFrom(other.AlphaTexture);
 810      }
 811      if (other.emissiveTexture_ != null) {
 812        if (emissiveTexture_ == null) {
 813          EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 814        }
 815        EmissiveTexture.MergeFrom(other.EmissiveTexture);
 816      }
 817      if (other.bumpTexture_ != null) {
 818        if (bumpTexture_ == null) {
 819          BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 820        }
 821        BumpTexture.MergeFrom(other.BumpTexture);
 822      }
 823      if (other.albedoColor_ != null) {
 824        if (albedoColor_ == null) {
 825          AlbedoColor = new global::DCL.ECSComponents.Color3();
 826        }
 827        AlbedoColor.MergeFrom(other.AlbedoColor);
 828      }
 829      if (other.emissiveColor_ != null) {
 830        if (emissiveColor_ == null) {
 831          EmissiveColor = new global::DCL.ECSComponents.Color3();
 832        }
 833        EmissiveColor.MergeFrom(other.EmissiveColor);
 834      }
 835      if (other.reflectivityColor_ != null) {
 836        if (reflectivityColor_ == null) {
 837          ReflectivityColor = new global::DCL.ECSComponents.Color3();
 838        }
 839        ReflectivityColor.MergeFrom(other.ReflectivityColor);
 840      }
 841      if (other.HasTransparencyMode) {
 842        TransparencyMode = other.TransparencyMode;
 843      }
 844      if (other.HasMetallic) {
 845        Metallic = other.Metallic;
 846      }
 847      if (other.HasRoughness) {
 848        Roughness = other.Roughness;
 849      }
 850      if (other.HasGlossiness) {
 851        Glossiness = other.Glossiness;
 852      }
 853      if (other.HasSpecularIntensity) {
 854        SpecularIntensity = other.SpecularIntensity;
 855      }
 856      if (other.HasEmissiveIntensity) {
 857        EmissiveIntensity = other.EmissiveIntensity;
 858      }
 859      if (other.HasDirectIntensity) {
 860        DirectIntensity = other.DirectIntensity;
 861      }
 862      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 863    }
 864
 865    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 866    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 867    public void MergeFrom(pb::CodedInputStream input) {
 868    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 869      input.ReadRawMessage(this);
 870    #else
 871      uint tag;
 872      while ((tag = input.ReadTag()) != 0) {
 873        switch(tag) {
 874          default:
 875            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 876            break;
 877          case 10: {
 878            if (texture_ == null) {
 879              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 880            }
 881            input.ReadMessage(Texture);
 882            break;
 883          }
 884          case 21: {
 885            AlphaTest = input.ReadFloat();
 886            break;
 887          }
 888          case 24: {
 889            CastShadows = input.ReadBool();
 890            break;
 891          }
 892          case 34: {
 893            if (alphaTexture_ == null) {
 894              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 895            }
 896            input.ReadMessage(AlphaTexture);
 897            break;
 898          }
 899          case 42: {
 900            if (emissiveTexture_ == null) {
 901              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 902            }
 903            input.ReadMessage(EmissiveTexture);
 904            break;
 905          }
 906          case 50: {
 907            if (bumpTexture_ == null) {
 908              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 909            }
 910            input.ReadMessage(BumpTexture);
 911            break;
 912          }
 913          case 58: {
 914            if (albedoColor_ == null) {
 915              AlbedoColor = new global::DCL.ECSComponents.Color3();
 916            }
 917            input.ReadMessage(AlbedoColor);
 918            break;
 919          }
 920          case 66: {
 921            if (emissiveColor_ == null) {
 922              EmissiveColor = new global::DCL.ECSComponents.Color3();
 923            }
 924            input.ReadMessage(EmissiveColor);
 925            break;
 926          }
 927          case 74: {
 928            if (reflectivityColor_ == null) {
 929              ReflectivityColor = new global::DCL.ECSComponents.Color3();
 930            }
 931            input.ReadMessage(ReflectivityColor);
 932            break;
 933          }
 934          case 80: {
 935            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 936            break;
 937          }
 938          case 93: {
 939            Metallic = input.ReadFloat();
 940            break;
 941          }
 942          case 101: {
 943            Roughness = input.ReadFloat();
 944            break;
 945          }
 946          case 109: {
 947            Glossiness = input.ReadFloat();
 948            break;
 949          }
 950          case 117: {
 951            SpecularIntensity = input.ReadFloat();
 952            break;
 953          }
 954          case 125: {
 955            EmissiveIntensity = input.ReadFloat();
 956            break;
 957          }
 958          case 133: {
 959            DirectIntensity = input.ReadFloat();
 960            break;
 961          }
 962        }
 963      }
 964    #endif
 965    }
 966
 967    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 968    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 969    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 970    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 971      uint tag;
 972      while ((tag = input.ReadTag()) != 0) {
 973        switch(tag) {
 974          default:
 975            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 976            break;
 977          case 10: {
 978            if (texture_ == null) {
 979              Texture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 980            }
 981            input.ReadMessage(Texture);
 982            break;
 983          }
 984          case 21: {
 985            AlphaTest = input.ReadFloat();
 986            break;
 987          }
 988          case 24: {
 989            CastShadows = input.ReadBool();
 990            break;
 991          }
 992          case 34: {
 993            if (alphaTexture_ == null) {
 994              AlphaTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 995            }
 996            input.ReadMessage(AlphaTexture);
 997            break;
 998          }
 999          case 42: {
 1000            if (emissiveTexture_ == null) {
 1001              EmissiveTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1002            }
 1003            input.ReadMessage(EmissiveTexture);
 1004            break;
 1005          }
 1006          case 50: {
 1007            if (bumpTexture_ == null) {
 1008              BumpTexture = new global::DCL.ECSComponents.PBMaterial.Types.Texture();
 1009            }
 1010            input.ReadMessage(BumpTexture);
 1011            break;
 1012          }
 1013          case 58: {
 1014            if (albedoColor_ == null) {
 1015              AlbedoColor = new global::DCL.ECSComponents.Color3();
 1016            }
 1017            input.ReadMessage(AlbedoColor);
 1018            break;
 1019          }
 1020          case 66: {
 1021            if (emissiveColor_ == null) {
 1022              EmissiveColor = new global::DCL.ECSComponents.Color3();
 1023            }
 1024            input.ReadMessage(EmissiveColor);
 1025            break;
 1026          }
 1027          case 74: {
 1028            if (reflectivityColor_ == null) {
 1029              ReflectivityColor = new global::DCL.ECSComponents.Color3();
 1030            }
 1031            input.ReadMessage(ReflectivityColor);
 1032            break;
 1033          }
 1034          case 80: {
 1035            TransparencyMode = (global::DCL.ECSComponents.TransparencyMode) input.ReadEnum();
 1036            break;
 1037          }
 1038          case 93: {
 1039            Metallic = input.ReadFloat();
 1040            break;
 1041          }
 1042          case 101: {
 1043            Roughness = input.ReadFloat();
 1044            break;
 1045          }
 1046          case 109: {
 1047            Glossiness = input.ReadFloat();
 1048            break;
 1049          }
 1050          case 117: {
 1051            SpecularIntensity = input.ReadFloat();
 1052            break;
 1053          }
 1054          case 125: {
 1055            EmissiveIntensity = input.ReadFloat();
 1056            break;
 1057          }
 1058          case 133: {
 1059            DirectIntensity = input.ReadFloat();
 1060            break;
 1061          }
 1062        }
 1063      }
 1064    }
 1065    #endif
 1066
 1067    #region Nested types
 1068    /// <summary>Container for nested types declared in the PBMaterial message type.</summary>
 1069    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1070    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1071    public static partial class Types {
 1072      public sealed partial class Texture : pb::IMessage<Texture>
 1073      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1074          , pb::IBufferMessage
 1075      #endif
 1076      {
 1077        private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture())
 1078        private pb::UnknownFieldSet _unknownFields;
 1079        private int _hasBits0;
 1080        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1081        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1082        public static pb::MessageParser<Texture> Parser { get { return _parser; } }
 1083
 1084        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1085        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1086        public static pbr::MessageDescriptor Descriptor {
 1087          get { return global::DCL.ECSComponents.PBMaterial.Descriptor.NestedTypes[0]; }
 1088        }
 1089
 1090        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1091        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1092        pbr::MessageDescriptor pb::IMessage.Descriptor {
 1093          get { return Descriptor; }
 1094        }
 1095
 1096        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1097        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1098        public Texture() {
 1099          OnConstruction();
 1100        }
 1101
 1102        partial void OnConstruction();
 1103
 1104        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1105        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1106        public Texture(Texture other) : this() {
 1107          _hasBits0 = other._hasBits0;
 1108          src_ = other.src_;
 1109          wrapMode_ = other.wrapMode_;
 1110          filterMode_ = other.filterMode_;
 1111          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 1112        }
 1113
 1114        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1115        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1116        public Texture Clone() {
 1117          return new Texture(this);
 1118        }
 1119
 1120        /// <summary>Field number for the "src" field.</summary>
 1121        public const int SrcFieldNumber = 1;
 1122        private string src_ = "";
 1123        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1124        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1125        public string Src {
 1126          get { return src_; }
 1127          set {
 1128            src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1129          }
 1130        }
 1131
 1132        /// <summary>Field number for the "wrapMode" field.</summary>
 1133        public const int WrapModeFieldNumber = 2;
 1134        private global::DCL.ECSComponents.TextureWrapMode wrapMode_;
 1135        /// <summary>
 1136        /// default = TextureWrapMode.Clamp
 1137        /// </summary>
 1138        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1139        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1140        public global::DCL.ECSComponents.TextureWrapMode WrapMode {
 1141          get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::DCL.ECSComponents.TextureWrapMode.
 1142          set {
 1143            _hasBits0 |= 1;
 1144            wrapMode_ = value;
 1145          }
 1146        }
 1147        /// <summary>Gets whether the "wrapMode" field is set</summary>
 1148        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1149        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1150        public bool HasWrapMode {
 1151          get { return (_hasBits0 & 1) != 0; }
 1152        }
 1153        /// <summary>Clears the value of the "wrapMode" field</summary>
 1154        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1155        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1156        public void ClearWrapMode() {
 1157          _hasBits0 &= ~1;
 1158        }
 1159
 1160        /// <summary>Field number for the "filterMode" field.</summary>
 1161        public const int FilterModeFieldNumber = 3;
 1162        private global::DCL.ECSComponents.FilterMode filterMode_;
 1163        /// <summary>
 1164        /// default = FilterMode.Bilinear
 1165        /// </summary>
 1166        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1167        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1168        public global::DCL.ECSComponents.FilterMode FilterMode {
 1169          get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::DCL.ECSComponents.FilterMode.Poi
 1170          set {
 1171            _hasBits0 |= 2;
 1172            filterMode_ = value;
 1173          }
 1174        }
 1175        /// <summary>Gets whether the "filterMode" field is set</summary>
 1176        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1177        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1178        public bool HasFilterMode {
 1179          get { return (_hasBits0 & 2) != 0; }
 1180        }
 1181        /// <summary>Clears the value of the "filterMode" field</summary>
 1182        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1183        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1184        public void ClearFilterMode() {
 1185          _hasBits0 &= ~2;
 1186        }
 1187
 1188        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1189        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1190        public override bool Equals(object other) {
 1191          return Equals(other as Texture);
 1192        }
 1193
 1194        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1195        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1196        public bool Equals(Texture other) {
 1197          if (ReferenceEquals(other, null)) {
 1198            return false;
 1199          }
 1200          if (ReferenceEquals(other, this)) {
 1201            return true;
 1202          }
 1203          if (Src != other.Src) return false;
 1204          if (WrapMode != other.WrapMode) return false;
 1205          if (FilterMode != other.FilterMode) return false;
 1206          return Equals(_unknownFields, other._unknownFields);
 1207        }
 1208
 1209        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1210        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1211        public override int GetHashCode() {
 1212          int hash = 1;
 1213          if (Src.Length != 0) hash ^= Src.GetHashCode();
 1214          if (HasWrapMode) hash ^= WrapMode.GetHashCode();
 1215          if (HasFilterMode) hash ^= FilterMode.GetHashCode();
 1216          if (_unknownFields != null) {
 1217            hash ^= _unknownFields.GetHashCode();
 1218          }
 1219          return hash;
 1220        }
 1221
 1222        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1223        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1224        public override string ToString() {
 1225          return pb::JsonFormatter.ToDiagnosticString(this);
 1226        }
 1227
 1228        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1229        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1230        public void WriteTo(pb::CodedOutputStream output) {
 1231        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1232          output.WriteRawMessage(this);
 1233        #else
 1234          if (Src.Length != 0) {
 1235            output.WriteRawTag(10);
 1236            output.WriteString(Src);
 1237          }
 1238          if (HasWrapMode) {
 1239            output.WriteRawTag(16);
 1240            output.WriteEnum((int) WrapMode);
 1241          }
 1242          if (HasFilterMode) {
 1243            output.WriteRawTag(24);
 1244            output.WriteEnum((int) FilterMode);
 1245          }
 1246          if (_unknownFields != null) {
 1247            _unknownFields.WriteTo(output);
 1248          }
 1249        #endif
 1250        }
 1251
 1252        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1253        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1254        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1255        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 1256          if (Src.Length != 0) {
 1257            output.WriteRawTag(10);
 1258            output.WriteString(Src);
 1259          }
 1260          if (HasWrapMode) {
 1261            output.WriteRawTag(16);
 1262            output.WriteEnum((int) WrapMode);
 1263          }
 1264          if (HasFilterMode) {
 1265            output.WriteRawTag(24);
 1266            output.WriteEnum((int) FilterMode);
 1267          }
 1268          if (_unknownFields != null) {
 1269            _unknownFields.WriteTo(ref output);
 1270          }
 1271        }
 1272        #endif
 1273
 1274        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1275        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1276        public int CalculateSize() {
 1277          int size = 0;
 1278          if (Src.Length != 0) {
 1279            size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 1280          }
 1281          if (HasWrapMode) {
 1282            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode);
 1283          }
 1284          if (HasFilterMode) {
 1285            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode);
 1286          }
 1287          if (_unknownFields != null) {
 1288            size += _unknownFields.CalculateSize();
 1289          }
 1290          return size;
 1291        }
 1292
 1293        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1294        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1295        public void MergeFrom(Texture other) {
 1296          if (other == null) {
 1297            return;
 1298          }
 1299          if (other.Src.Length != 0) {
 1300            Src = other.Src;
 1301          }
 1302          if (other.HasWrapMode) {
 1303            WrapMode = other.WrapMode;
 1304          }
 1305          if (other.HasFilterMode) {
 1306            FilterMode = other.FilterMode;
 1307          }
 1308          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 1309        }
 1310
 1311        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1312        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1313        public void MergeFrom(pb::CodedInputStream input) {
 1314        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1315          input.ReadRawMessage(this);
 1316        #else
 1317          uint tag;
 1318          while ((tag = input.ReadTag()) != 0) {
 1319            switch(tag) {
 1320              default:
 1321                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 1322                break;
 1323              case 10: {
 1324                Src = input.ReadString();
 1325                break;
 1326              }
 1327              case 16: {
 1328                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 1329                break;
 1330              }
 1331              case 24: {
 1332                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1333                break;
 1334              }
 1335            }
 1336          }
 1337        #endif
 1338        }
 1339
 1340        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1341        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1342        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1343        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1344          uint tag;
 1345          while ((tag = input.ReadTag()) != 0) {
 1346            switch(tag) {
 1347              default:
 1348                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1349                break;
 1350              case 10: {
 1351                Src = input.ReadString();
 1352                break;
 1353              }
 1354              case 16: {
 1355                WrapMode = (global::DCL.ECSComponents.TextureWrapMode) input.ReadEnum();
 1356                break;
 1357              }
 1358              case 24: {
 1359                FilterMode = (global::DCL.ECSComponents.FilterMode) input.ReadEnum();
 1360                break;
 1361              }
 1362            }
 1363          }
 1364        }
 1365        #endif
 1366
 1367      }
 1368
 1369    }
 1370    #endregion
 1371
 1372  }
 1373
 1374  #endregion
 1375
 1376}
 1377
 1378#endregion Designer generated code

Methods/Properties

Descriptor()
MaterialReflection()