| | 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 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace 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 | | "ZS5wcm90byKKCAoKUEJNYXRlcmlhbBI3Cgd0ZXh0dXJlGAEgASgLMiEuZGVj", |
| | 31 | | "ZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlVW5pb25IAIgBARIXCgphbHBoYV90", |
| | 32 | | "ZXN0GAIgASgCSAGIAQESGQoMY2FzdF9zaGFkb3dzGAMgASgISAKIAQESPQoN", |
| | 33 | | "YWxwaGFfdGV4dHVyZRgEIAEoCzIhLmRlY2VudHJhbGFuZC5jb21tb24uVGV4", |
| | 34 | | "dHVyZVVuaW9uSAOIAQESQAoQZW1pc3NpdmVfdGV4dHVyZRgFIAEoCzIhLmRl", |
| | 35 | | "Y2VudHJhbGFuZC5jb21tb24uVGV4dHVyZVVuaW9uSASIAQESPAoMYnVtcF90", |
| | 36 | | "ZXh0dXJlGAYgASgLMiEuZGVjZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlVW5p", |
| | 37 | | "b25IBYgBARI2CgxhbGJlZG9fY29sb3IYByABKAsyGy5kZWNlbnRyYWxhbmQu", |
| | 38 | | "Y29tbW9uLkNvbG9yM0gGiAEBEjgKDmVtaXNzaXZlX2NvbG9yGAggASgLMhsu", |
| | 39 | | "ZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjNIB4gBARI8ChJyZWZsZWN0aXZp", |
| | 40 | | "dHlfY29sb3IYCSABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9yM0gI", |
| | 41 | | "iAEBElUKEXRyYW5zcGFyZW5jeV9tb2RlGAogASgOMjUuZGVjZW50cmFsYW5k", |
| | 42 | | "LnNkay5jb21wb25lbnRzLk1hdGVyaWFsVHJhbnNwYXJlbmN5TW9kZUgJiAEB", |
| | 43 | | "EhUKCG1ldGFsbGljGAsgASgCSAqIAQESFgoJcm91Z2huZXNzGAwgASgCSAuI", |
| | 44 | | "AQESFwoKZ2xvc3NpbmVzcxgNIAEoAkgMiAEBEh8KEnNwZWN1bGFyX2ludGVu", |
| | 45 | | "c2l0eRgOIAEoAkgNiAEBEh8KEmVtaXNzaXZlX2ludGVuc2l0eRgPIAEoAkgO", |
| | 46 | | "iAEBEh0KEGRpcmVjdF9pbnRlbnNpdHkYECABKAJID4gBAUIKCghfdGV4dHVy", |
| | 47 | | "ZUINCgtfYWxwaGFfdGVzdEIPCg1fY2FzdF9zaGFkb3dzQhAKDl9hbHBoYV90", |
| | 48 | | "ZXh0dXJlQhMKEV9lbWlzc2l2ZV90ZXh0dXJlQg8KDV9idW1wX3RleHR1cmVC", |
| | 49 | | "DwoNX2FsYmVkb19jb2xvckIRCg9fZW1pc3NpdmVfY29sb3JCFQoTX3JlZmxl", |
| | 50 | | "Y3Rpdml0eV9jb2xvckIUChJfdHJhbnNwYXJlbmN5X21vZGVCCwoJX21ldGFs", |
| | 51 | | "bGljQgwKCl9yb3VnaG5lc3NCDQoLX2dsb3NzaW5lc3NCFQoTX3NwZWN1bGFy", |
| | 52 | | "X2ludGVuc2l0eUIVChNfZW1pc3NpdmVfaW50ZW5zaXR5QhMKEV9kaXJlY3Rf", |
| | 53 | | "aW50ZW5zaXR5KoUBChhNYXRlcmlhbFRyYW5zcGFyZW5jeU1vZGUSDgoKTVRN", |
| | 54 | | "X09QQVFVRRAAEhIKDk1UTV9BTFBIQV9URVNUEAESEwoPTVRNX0FMUEhBX0JM", |
| | 55 | | "RU5EEAISIgoeTVRNX0FMUEhBX1RFU1RfQU5EX0FMUEhBX0JMRU5EEAMSDAoI", |
| | 56 | | "TVRNX0FVVE8QBEIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 57 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 58 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.ColorsReflection.Descriptor, global::DCL.ECSComponents.T |
| | 59 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.MaterialTransparencyMode), }, null, new |
| | 60 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBMaterial), global::DCL.ECSComponents.PBMate |
| | 61 | | })); |
| | 62 | | } |
| | 63 | | #endregion |
| | 64 | |
|
| | 65 | | } |
| | 66 | | #region Enums |
| | 67 | | public enum MaterialTransparencyMode { |
| | 68 | | [pbr::OriginalName("MTM_OPAQUE")] MtmOpaque = 0, |
| | 69 | | [pbr::OriginalName("MTM_ALPHA_TEST")] MtmAlphaTest = 1, |
| | 70 | | [pbr::OriginalName("MTM_ALPHA_BLEND")] MtmAlphaBlend = 2, |
| | 71 | | [pbr::OriginalName("MTM_ALPHA_TEST_AND_ALPHA_BLEND")] MtmAlphaTestAndAlphaBlend = 3, |
| | 72 | | [pbr::OriginalName("MTM_AUTO")] MtmAuto = 4, |
| | 73 | | } |
| | 74 | |
|
| | 75 | | #endregion |
| | 76 | |
|
| | 77 | | #region Messages |
| | 78 | | public sealed partial class PBMaterial : pb::IMessage<PBMaterial> |
| | 79 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 80 | | , pb::IBufferMessage |
| | 81 | | #endif |
| | 82 | | { |
| 1 | 83 | | private static readonly pb::MessageParser<PBMaterial> _parser = new pb::MessageParser<PBMaterial>(() => new PBMateri |
| | 84 | | private pb::UnknownFieldSet _unknownFields; |
| | 85 | | private int _hasBits0; |
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 88 | | public static pb::MessageParser<PBMaterial> Parser { get { return _parser; } } |
| | 89 | |
|
| | 90 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 91 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 92 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 93 | | get { return global::DCL.ECSComponents.MaterialReflection.Descriptor.MessageTypes[0]; } |
| | 94 | | } |
| | 95 | |
|
| | 96 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 97 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 98 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 99 | | get { return Descriptor; } |
| | 100 | | } |
| | 101 | |
|
| | 102 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 103 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 104 | | public PBMaterial() { |
| | 105 | | OnConstruction(); |
| 1 | 106 | | } |
| | 107 | |
|
| | 108 | | partial void OnConstruction(); |
| | 109 | |
|
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 5 | 112 | | public PBMaterial(PBMaterial other) : this() { |
| 5 | 113 | | _hasBits0 = other._hasBits0; |
| 5 | 114 | | texture_ = other.texture_ != null ? other.texture_.Clone() : null; |
| 5 | 115 | | alphaTest_ = other.alphaTest_; |
| 5 | 116 | | castShadows_ = other.castShadows_; |
| 5 | 117 | | alphaTexture_ = other.alphaTexture_ != null ? other.alphaTexture_.Clone() : null; |
| 5 | 118 | | emissiveTexture_ = other.emissiveTexture_ != null ? other.emissiveTexture_.Clone() : null; |
| 5 | 119 | | bumpTexture_ = other.bumpTexture_ != null ? other.bumpTexture_.Clone() : null; |
| 5 | 120 | | albedoColor_ = other.albedoColor_ != null ? other.albedoColor_.Clone() : null; |
| 5 | 121 | | emissiveColor_ = other.emissiveColor_ != null ? other.emissiveColor_.Clone() : null; |
| 5 | 122 | | reflectivityColor_ = other.reflectivityColor_ != null ? other.reflectivityColor_.Clone() : null; |
| 5 | 123 | | transparencyMode_ = other.transparencyMode_; |
| 5 | 124 | | metallic_ = other.metallic_; |
| 5 | 125 | | roughness_ = other.roughness_; |
| 5 | 126 | | glossiness_ = other.glossiness_; |
| 5 | 127 | | specularIntensity_ = other.specularIntensity_; |
| 5 | 128 | | emissiveIntensity_ = other.emissiveIntensity_; |
| 5 | 129 | | directIntensity_ = other.directIntensity_; |
| 5 | 130 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 5 | 131 | | } |
| | 132 | |
|
| | 133 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 134 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 135 | | public PBMaterial Clone() { |
| 0 | 136 | | return new PBMaterial(this); |
| | 137 | | } |
| | 138 | |
|
| | 139 | | /// <summary>Field number for the "texture" field.</summary> |
| | 140 | | public const int TextureFieldNumber = 1; |
| | 141 | | private global::DCL.ECSComponents.TextureUnion texture_; |
| | 142 | | /// <summary> |
| | 143 | | /// default = null |
| | 144 | | /// </summary> |
| | 145 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 146 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 147 | | public global::DCL.ECSComponents.TextureUnion Texture { |
| 1 | 148 | | get { return texture_; } |
| | 149 | | set { |
| 1 | 150 | | texture_ = value; |
| 1 | 151 | | } |
| | 152 | | } |
| | 153 | |
|
| | 154 | | /// <summary>Field number for the "alpha_test" field.</summary> |
| | 155 | | public const int AlphaTestFieldNumber = 2; |
| | 156 | | private float alphaTest_; |
| | 157 | | /// <summary> |
| | 158 | | /// default = 0.5. range value: from 0 to 1 |
| | 159 | | /// </summary> |
| | 160 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 161 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 162 | | public float AlphaTest { |
| 8 | 163 | | get { if ((_hasBits0 & 1) != 0) { return alphaTest_; } else { return 0F; } } |
| | 164 | | set { |
| 0 | 165 | | _hasBits0 |= 1; |
| 0 | 166 | | alphaTest_ = value; |
| 0 | 167 | | } |
| | 168 | | } |
| | 169 | | /// <summary>Gets whether the "alpha_test" field is set</summary> |
| | 170 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 171 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 172 | | public bool HasAlphaTest { |
| 0 | 173 | | get { return (_hasBits0 & 1) != 0; } |
| | 174 | | } |
| | 175 | | /// <summary>Clears the value of the "alpha_test" field</summary> |
| | 176 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 177 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 178 | | public void ClearAlphaTest() { |
| 0 | 179 | | _hasBits0 &= ~1; |
| 0 | 180 | | } |
| | 181 | |
|
| | 182 | | /// <summary>Field number for the "cast_shadows" field.</summary> |
| | 183 | | public const int CastShadowsFieldNumber = 3; |
| | 184 | | private bool castShadows_; |
| | 185 | | /// <summary> |
| | 186 | | /// default = true |
| | 187 | | /// </summary> |
| | 188 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 189 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 190 | | public bool CastShadows { |
| 0 | 191 | | get { if ((_hasBits0 & 2) != 0) { return castShadows_; } else { return false; } } |
| | 192 | | set { |
| 0 | 193 | | _hasBits0 |= 2; |
| 0 | 194 | | castShadows_ = value; |
| 0 | 195 | | } |
| | 196 | | } |
| | 197 | | /// <summary>Gets whether the "cast_shadows" field is set</summary> |
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 200 | | public bool HasCastShadows { |
| 0 | 201 | | get { return (_hasBits0 & 2) != 0; } |
| | 202 | | } |
| | 203 | | /// <summary>Clears the value of the "cast_shadows" field</summary> |
| | 204 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 205 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 206 | | public void ClearCastShadows() { |
| 0 | 207 | | _hasBits0 &= ~2; |
| 0 | 208 | | } |
| | 209 | |
|
| | 210 | | /// <summary>Field number for the "alpha_texture" field.</summary> |
| | 211 | | public const int AlphaTextureFieldNumber = 4; |
| | 212 | | private global::DCL.ECSComponents.TextureUnion alphaTexture_; |
| | 213 | | /// <summary> |
| | 214 | | /// default = null |
| | 215 | | /// </summary> |
| | 216 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 217 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 218 | | public global::DCL.ECSComponents.TextureUnion AlphaTexture { |
| 0 | 219 | | get { return alphaTexture_; } |
| | 220 | | set { |
| 0 | 221 | | alphaTexture_ = value; |
| 0 | 222 | | } |
| | 223 | | } |
| | 224 | |
|
| | 225 | | /// <summary>Field number for the "emissive_texture" field.</summary> |
| | 226 | | public const int EmissiveTextureFieldNumber = 5; |
| | 227 | | private global::DCL.ECSComponents.TextureUnion emissiveTexture_; |
| | 228 | | /// <summary> |
| | 229 | | /// default = null |
| | 230 | | /// </summary> |
| | 231 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 232 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 233 | | public global::DCL.ECSComponents.TextureUnion EmissiveTexture { |
| 0 | 234 | | get { return emissiveTexture_; } |
| | 235 | | set { |
| 0 | 236 | | emissiveTexture_ = value; |
| 0 | 237 | | } |
| | 238 | | } |
| | 239 | |
|
| | 240 | | /// <summary>Field number for the "bump_texture" field.</summary> |
| | 241 | | public const int BumpTextureFieldNumber = 6; |
| | 242 | | private global::DCL.ECSComponents.TextureUnion bumpTexture_; |
| | 243 | | /// <summary> |
| | 244 | | /// default = null |
| | 245 | | /// </summary> |
| | 246 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 247 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 248 | | public global::DCL.ECSComponents.TextureUnion BumpTexture { |
| 0 | 249 | | get { return bumpTexture_; } |
| | 250 | | set { |
| 0 | 251 | | bumpTexture_ = value; |
| 0 | 252 | | } |
| | 253 | | } |
| | 254 | |
|
| | 255 | | /// <summary>Field number for the "albedo_color" field.</summary> |
| | 256 | | public const int AlbedoColorFieldNumber = 7; |
| | 257 | | private global::DCL.ECSComponents.Color3 albedoColor_; |
| | 258 | | /// <summary> |
| | 259 | | /// default = white; |
| | 260 | | /// </summary> |
| | 261 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 262 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 263 | | public global::DCL.ECSComponents.Color3 AlbedoColor { |
| 0 | 264 | | get { return albedoColor_; } |
| | 265 | | set { |
| 0 | 266 | | albedoColor_ = value; |
| 0 | 267 | | } |
| | 268 | | } |
| | 269 | |
|
| | 270 | | /// <summary>Field number for the "emissive_color" field.</summary> |
| | 271 | | public const int EmissiveColorFieldNumber = 8; |
| | 272 | | private global::DCL.ECSComponents.Color3 emissiveColor_; |
| | 273 | | /// <summary> |
| | 274 | | /// default = black; |
| | 275 | | /// </summary> |
| | 276 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 277 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 278 | | public global::DCL.ECSComponents.Color3 EmissiveColor { |
| 0 | 279 | | get { return emissiveColor_; } |
| | 280 | | set { |
| 0 | 281 | | emissiveColor_ = value; |
| 0 | 282 | | } |
| | 283 | | } |
| | 284 | |
|
| | 285 | | /// <summary>Field number for the "reflectivity_color" field.</summary> |
| | 286 | | public const int ReflectivityColorFieldNumber = 9; |
| | 287 | | private global::DCL.ECSComponents.Color3 reflectivityColor_; |
| | 288 | | /// <summary> |
| | 289 | | /// default = white; |
| | 290 | | /// </summary> |
| | 291 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 292 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 293 | | public global::DCL.ECSComponents.Color3 ReflectivityColor { |
| 0 | 294 | | get { return reflectivityColor_; } |
| | 295 | | set { |
| 0 | 296 | | reflectivityColor_ = value; |
| 0 | 297 | | } |
| | 298 | | } |
| | 299 | |
|
| | 300 | | /// <summary>Field number for the "transparency_mode" field.</summary> |
| | 301 | | public const int TransparencyModeFieldNumber = 10; |
| | 302 | | private global::DCL.ECSComponents.MaterialTransparencyMode transparencyMode_; |
| | 303 | | /// <summary> |
| | 304 | | /// default = TransparencyMode.Auto |
| | 305 | | /// </summary> |
| | 306 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 307 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 308 | | public global::DCL.ECSComponents.MaterialTransparencyMode TransparencyMode { |
| 0 | 309 | | get { if ((_hasBits0 & 4) != 0) { return transparencyMode_; } else { return global::DCL.ECSComponents.MaterialTran |
| | 310 | | set { |
| 0 | 311 | | _hasBits0 |= 4; |
| 0 | 312 | | transparencyMode_ = value; |
| 0 | 313 | | } |
| | 314 | | } |
| | 315 | | /// <summary>Gets whether the "transparency_mode" field is set</summary> |
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public bool HasTransparencyMode { |
| 0 | 319 | | get { return (_hasBits0 & 4) != 0; } |
| | 320 | | } |
| | 321 | | /// <summary>Clears the value of the "transparency_mode" field</summary> |
| | 322 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 323 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 324 | | public void ClearTransparencyMode() { |
| 0 | 325 | | _hasBits0 &= ~4; |
| 0 | 326 | | } |
| | 327 | |
|
| | 328 | | /// <summary>Field number for the "metallic" field.</summary> |
| | 329 | | public const int MetallicFieldNumber = 11; |
| | 330 | | private float metallic_; |
| | 331 | | /// <summary> |
| | 332 | | /// default = 0.5 |
| | 333 | | /// </summary> |
| | 334 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 335 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 336 | | public float Metallic { |
| 8 | 337 | | get { if ((_hasBits0 & 8) != 0) { return metallic_; } else { return 0F; } } |
| | 338 | | set { |
| 0 | 339 | | _hasBits0 |= 8; |
| 0 | 340 | | metallic_ = value; |
| 0 | 341 | | } |
| | 342 | | } |
| | 343 | | /// <summary>Gets whether the "metallic" field is set</summary> |
| | 344 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 345 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 346 | | public bool HasMetallic { |
| 0 | 347 | | get { return (_hasBits0 & 8) != 0; } |
| | 348 | | } |
| | 349 | | /// <summary>Clears the value of the "metallic" field</summary> |
| | 350 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 351 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 352 | | public void ClearMetallic() { |
| 0 | 353 | | _hasBits0 &= ~8; |
| 0 | 354 | | } |
| | 355 | |
|
| | 356 | | /// <summary>Field number for the "roughness" field.</summary> |
| | 357 | | public const int RoughnessFieldNumber = 12; |
| | 358 | | private float roughness_; |
| | 359 | | /// <summary> |
| | 360 | | /// default = 0.5 |
| | 361 | | /// </summary> |
| | 362 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 363 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 364 | | public float Roughness { |
| 8 | 365 | | get { if ((_hasBits0 & 16) != 0) { return roughness_; } else { return 0F; } } |
| | 366 | | set { |
| 0 | 367 | | _hasBits0 |= 16; |
| 0 | 368 | | roughness_ = value; |
| 0 | 369 | | } |
| | 370 | | } |
| | 371 | | /// <summary>Gets whether the "roughness" field is set</summary> |
| | 372 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 373 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 374 | | public bool HasRoughness { |
| 0 | 375 | | get { return (_hasBits0 & 16) != 0; } |
| | 376 | | } |
| | 377 | | /// <summary>Clears the value of the "roughness" field</summary> |
| | 378 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 379 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 380 | | public void ClearRoughness() { |
| 0 | 381 | | _hasBits0 &= ~16; |
| 0 | 382 | | } |
| | 383 | |
|
| | 384 | | /// <summary>Field number for the "glossiness" field.</summary> |
| | 385 | | public const int GlossinessFieldNumber = 13; |
| | 386 | | private float glossiness_; |
| | 387 | | /// <summary> |
| | 388 | | /// default = 1 |
| | 389 | | /// </summary> |
| | 390 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 391 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 392 | | public float Glossiness { |
| 8 | 393 | | get { if ((_hasBits0 & 32) != 0) { return glossiness_; } else { return 0F; } } |
| | 394 | | set { |
| 0 | 395 | | _hasBits0 |= 32; |
| 0 | 396 | | glossiness_ = value; |
| 0 | 397 | | } |
| | 398 | | } |
| | 399 | | /// <summary>Gets whether the "glossiness" field is set</summary> |
| | 400 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 401 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 402 | | public bool HasGlossiness { |
| 0 | 403 | | get { return (_hasBits0 & 32) != 0; } |
| | 404 | | } |
| | 405 | | /// <summary>Clears the value of the "glossiness" field</summary> |
| | 406 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 407 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 408 | | public void ClearGlossiness() { |
| 0 | 409 | | _hasBits0 &= ~32; |
| 0 | 410 | | } |
| | 411 | |
|
| | 412 | | /// <summary>Field number for the "specular_intensity" field.</summary> |
| | 413 | | public const int SpecularIntensityFieldNumber = 14; |
| | 414 | | private float specularIntensity_; |
| | 415 | | /// <summary> |
| | 416 | | /// default = 1 |
| | 417 | | /// </summary> |
| | 418 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 419 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 420 | | public float SpecularIntensity { |
| 8 | 421 | | get { if ((_hasBits0 & 64) != 0) { return specularIntensity_; } else { return 0F; } } |
| | 422 | | set { |
| 0 | 423 | | _hasBits0 |= 64; |
| 0 | 424 | | specularIntensity_ = value; |
| 0 | 425 | | } |
| | 426 | | } |
| | 427 | | /// <summary>Gets whether the "specular_intensity" field is set</summary> |
| | 428 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 429 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 430 | | public bool HasSpecularIntensity { |
| 0 | 431 | | get { return (_hasBits0 & 64) != 0; } |
| | 432 | | } |
| | 433 | | /// <summary>Clears the value of the "specular_intensity" field</summary> |
| | 434 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 435 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 436 | | public void ClearSpecularIntensity() { |
| 0 | 437 | | _hasBits0 &= ~64; |
| 0 | 438 | | } |
| | 439 | |
|
| | 440 | | /// <summary>Field number for the "emissive_intensity" field.</summary> |
| | 441 | | public const int EmissiveIntensityFieldNumber = 15; |
| | 442 | | private float emissiveIntensity_; |
| | 443 | | /// <summary> |
| | 444 | | /// default = 2 |
| | 445 | | /// </summary> |
| | 446 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 447 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 448 | | public float EmissiveIntensity { |
| 8 | 449 | | get { if ((_hasBits0 & 128) != 0) { return emissiveIntensity_; } else { return 0F; } } |
| | 450 | | set { |
| 0 | 451 | | _hasBits0 |= 128; |
| 0 | 452 | | emissiveIntensity_ = value; |
| 0 | 453 | | } |
| | 454 | | } |
| | 455 | | /// <summary>Gets whether the "emissive_intensity" field is set</summary> |
| | 456 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 457 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 458 | | public bool HasEmissiveIntensity { |
| 0 | 459 | | get { return (_hasBits0 & 128) != 0; } |
| | 460 | | } |
| | 461 | | /// <summary>Clears the value of the "emissive_intensity" field</summary> |
| | 462 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 463 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 464 | | public void ClearEmissiveIntensity() { |
| 0 | 465 | | _hasBits0 &= ~128; |
| 0 | 466 | | } |
| | 467 | |
|
| | 468 | | /// <summary>Field number for the "direct_intensity" field.</summary> |
| | 469 | | public const int DirectIntensityFieldNumber = 16; |
| | 470 | | private float directIntensity_; |
| | 471 | | /// <summary> |
| | 472 | | /// default = 1 |
| | 473 | | /// </summary> |
| | 474 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 475 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 476 | | public float DirectIntensity { |
| 8 | 477 | | get { if ((_hasBits0 & 256) != 0) { return directIntensity_; } else { return 0F; } } |
| | 478 | | set { |
| 0 | 479 | | _hasBits0 |= 256; |
| 0 | 480 | | directIntensity_ = value; |
| 0 | 481 | | } |
| | 482 | | } |
| | 483 | | /// <summary>Gets whether the "direct_intensity" field is set</summary> |
| | 484 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 485 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 486 | | public bool HasDirectIntensity { |
| 0 | 487 | | get { return (_hasBits0 & 256) != 0; } |
| | 488 | | } |
| | 489 | | /// <summary>Clears the value of the "direct_intensity" field</summary> |
| | 490 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 491 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 492 | | public void ClearDirectIntensity() { |
| 0 | 493 | | _hasBits0 &= ~256; |
| 0 | 494 | | } |
| | 495 | |
|
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public override bool Equals(object other) { |
| 0 | 499 | | return Equals(other as PBMaterial); |
| | 500 | | } |
| | 501 | |
|
| | 502 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 503 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 504 | | public bool Equals(PBMaterial other) { |
| 5 | 505 | | if (ReferenceEquals(other, null)) { |
| 0 | 506 | | return false; |
| | 507 | | } |
| 5 | 508 | | if (ReferenceEquals(other, this)) { |
| 0 | 509 | | return true; |
| | 510 | | } |
| 8 | 511 | | if (!object.Equals(Texture, other.Texture)) return false; |
| 2 | 512 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(AlphaTest, other.AlphaTest)) return false |
| 2 | 513 | | if (CastShadows != other.CastShadows) return false; |
| 2 | 514 | | if (!object.Equals(AlphaTexture, other.AlphaTexture)) return false; |
| 2 | 515 | | if (!object.Equals(EmissiveTexture, other.EmissiveTexture)) return false; |
| 2 | 516 | | if (!object.Equals(BumpTexture, other.BumpTexture)) return false; |
| 2 | 517 | | if (!object.Equals(AlbedoColor, other.AlbedoColor)) return false; |
| 2 | 518 | | if (!object.Equals(EmissiveColor, other.EmissiveColor)) return false; |
| 2 | 519 | | if (!object.Equals(ReflectivityColor, other.ReflectivityColor)) return false; |
| 2 | 520 | | if (TransparencyMode != other.TransparencyMode) return false; |
| 2 | 521 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Metallic, other.Metallic)) return false; |
| 2 | 522 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Roughness, other.Roughness)) return false |
| 2 | 523 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Glossiness, other.Glossiness)) return fal |
| 2 | 524 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(SpecularIntensity, other.SpecularIntensit |
| 2 | 525 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(EmissiveIntensity, other.EmissiveIntensit |
| 2 | 526 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(DirectIntensity, other.DirectIntensity)) |
| 2 | 527 | | return Equals(_unknownFields, other._unknownFields); |
| | 528 | | } |
| | 529 | |
|
| | 530 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 531 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 532 | | public override int GetHashCode() { |
| 0 | 533 | | int hash = 1; |
| 0 | 534 | | if (texture_ != null) hash ^= Texture.GetHashCode(); |
| 0 | 535 | | if (HasAlphaTest) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(AlphaTest); |
| 0 | 536 | | if (HasCastShadows) hash ^= CastShadows.GetHashCode(); |
| 0 | 537 | | if (alphaTexture_ != null) hash ^= AlphaTexture.GetHashCode(); |
| 0 | 538 | | if (emissiveTexture_ != null) hash ^= EmissiveTexture.GetHashCode(); |
| 0 | 539 | | if (bumpTexture_ != null) hash ^= BumpTexture.GetHashCode(); |
| 0 | 540 | | if (albedoColor_ != null) hash ^= AlbedoColor.GetHashCode(); |
| 0 | 541 | | if (emissiveColor_ != null) hash ^= EmissiveColor.GetHashCode(); |
| 0 | 542 | | if (reflectivityColor_ != null) hash ^= ReflectivityColor.GetHashCode(); |
| 0 | 543 | | if (HasTransparencyMode) hash ^= TransparencyMode.GetHashCode(); |
| 0 | 544 | | if (HasMetallic) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Metallic); |
| 0 | 545 | | if (HasRoughness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Roughness); |
| 0 | 546 | | if (HasGlossiness) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Glossiness); |
| 0 | 547 | | if (HasSpecularIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Specula |
| 0 | 548 | | if (HasEmissiveIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Emissiv |
| 0 | 549 | | if (HasDirectIntensity) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(DirectInt |
| 0 | 550 | | if (_unknownFields != null) { |
| 0 | 551 | | hash ^= _unknownFields.GetHashCode(); |
| | 552 | | } |
| 0 | 553 | | return hash; |
| | 554 | | } |
| | 555 | |
|
| | 556 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 557 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 558 | | public override string ToString() { |
| 0 | 559 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 560 | | } |
| | 561 | |
|
| | 562 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 563 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 564 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 565 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 566 | | output.WriteRawMessage(this); |
| | 567 | | #else |
| 0 | 568 | | if (texture_ != null) { |
| 0 | 569 | | output.WriteRawTag(10); |
| 0 | 570 | | output.WriteMessage(Texture); |
| | 571 | | } |
| 0 | 572 | | if (HasAlphaTest) { |
| 0 | 573 | | output.WriteRawTag(21); |
| 0 | 574 | | output.WriteFloat(AlphaTest); |
| | 575 | | } |
| 0 | 576 | | if (HasCastShadows) { |
| 0 | 577 | | output.WriteRawTag(24); |
| 0 | 578 | | output.WriteBool(CastShadows); |
| | 579 | | } |
| 0 | 580 | | if (alphaTexture_ != null) { |
| 0 | 581 | | output.WriteRawTag(34); |
| 0 | 582 | | output.WriteMessage(AlphaTexture); |
| | 583 | | } |
| 0 | 584 | | if (emissiveTexture_ != null) { |
| 0 | 585 | | output.WriteRawTag(42); |
| 0 | 586 | | output.WriteMessage(EmissiveTexture); |
| | 587 | | } |
| 0 | 588 | | if (bumpTexture_ != null) { |
| 0 | 589 | | output.WriteRawTag(50); |
| 0 | 590 | | output.WriteMessage(BumpTexture); |
| | 591 | | } |
| 0 | 592 | | if (albedoColor_ != null) { |
| 0 | 593 | | output.WriteRawTag(58); |
| 0 | 594 | | output.WriteMessage(AlbedoColor); |
| | 595 | | } |
| 0 | 596 | | if (emissiveColor_ != null) { |
| 0 | 597 | | output.WriteRawTag(66); |
| 0 | 598 | | output.WriteMessage(EmissiveColor); |
| | 599 | | } |
| 0 | 600 | | if (reflectivityColor_ != null) { |
| 0 | 601 | | output.WriteRawTag(74); |
| 0 | 602 | | output.WriteMessage(ReflectivityColor); |
| | 603 | | } |
| 0 | 604 | | if (HasTransparencyMode) { |
| 0 | 605 | | output.WriteRawTag(80); |
| 0 | 606 | | output.WriteEnum((int) TransparencyMode); |
| | 607 | | } |
| 0 | 608 | | if (HasMetallic) { |
| 0 | 609 | | output.WriteRawTag(93); |
| 0 | 610 | | output.WriteFloat(Metallic); |
| | 611 | | } |
| 0 | 612 | | if (HasRoughness) { |
| 0 | 613 | | output.WriteRawTag(101); |
| 0 | 614 | | output.WriteFloat(Roughness); |
| | 615 | | } |
| 0 | 616 | | if (HasGlossiness) { |
| 0 | 617 | | output.WriteRawTag(109); |
| 0 | 618 | | output.WriteFloat(Glossiness); |
| | 619 | | } |
| 0 | 620 | | if (HasSpecularIntensity) { |
| 0 | 621 | | output.WriteRawTag(117); |
| 0 | 622 | | output.WriteFloat(SpecularIntensity); |
| | 623 | | } |
| 0 | 624 | | if (HasEmissiveIntensity) { |
| 0 | 625 | | output.WriteRawTag(125); |
| 0 | 626 | | output.WriteFloat(EmissiveIntensity); |
| | 627 | | } |
| 0 | 628 | | if (HasDirectIntensity) { |
| 0 | 629 | | output.WriteRawTag(133, 1); |
| 0 | 630 | | output.WriteFloat(DirectIntensity); |
| | 631 | | } |
| 0 | 632 | | if (_unknownFields != null) { |
| 0 | 633 | | _unknownFields.WriteTo(output); |
| | 634 | | } |
| | 635 | | #endif |
| 0 | 636 | | } |
| | 637 | |
|
| | 638 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 639 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 640 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 641 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 642 | | if (texture_ != null) { |
| | 643 | | output.WriteRawTag(10); |
| | 644 | | output.WriteMessage(Texture); |
| | 645 | | } |
| | 646 | | if (HasAlphaTest) { |
| | 647 | | output.WriteRawTag(21); |
| | 648 | | output.WriteFloat(AlphaTest); |
| | 649 | | } |
| | 650 | | if (HasCastShadows) { |
| | 651 | | output.WriteRawTag(24); |
| | 652 | | output.WriteBool(CastShadows); |
| | 653 | | } |
| | 654 | | if (alphaTexture_ != null) { |
| | 655 | | output.WriteRawTag(34); |
| | 656 | | output.WriteMessage(AlphaTexture); |
| | 657 | | } |
| | 658 | | if (emissiveTexture_ != null) { |
| | 659 | | output.WriteRawTag(42); |
| | 660 | | output.WriteMessage(EmissiveTexture); |
| | 661 | | } |
| | 662 | | if (bumpTexture_ != null) { |
| | 663 | | output.WriteRawTag(50); |
| | 664 | | output.WriteMessage(BumpTexture); |
| | 665 | | } |
| | 666 | | if (albedoColor_ != null) { |
| | 667 | | output.WriteRawTag(58); |
| | 668 | | output.WriteMessage(AlbedoColor); |
| | 669 | | } |
| | 670 | | if (emissiveColor_ != null) { |
| | 671 | | output.WriteRawTag(66); |
| | 672 | | output.WriteMessage(EmissiveColor); |
| | 673 | | } |
| | 674 | | if (reflectivityColor_ != null) { |
| | 675 | | output.WriteRawTag(74); |
| | 676 | | output.WriteMessage(ReflectivityColor); |
| | 677 | | } |
| | 678 | | if (HasTransparencyMode) { |
| | 679 | | output.WriteRawTag(80); |
| | 680 | | output.WriteEnum((int) TransparencyMode); |
| | 681 | | } |
| | 682 | | if (HasMetallic) { |
| | 683 | | output.WriteRawTag(93); |
| | 684 | | output.WriteFloat(Metallic); |
| | 685 | | } |
| | 686 | | if (HasRoughness) { |
| | 687 | | output.WriteRawTag(101); |
| | 688 | | output.WriteFloat(Roughness); |
| | 689 | | } |
| | 690 | | if (HasGlossiness) { |
| | 691 | | output.WriteRawTag(109); |
| | 692 | | output.WriteFloat(Glossiness); |
| | 693 | | } |
| | 694 | | if (HasSpecularIntensity) { |
| | 695 | | output.WriteRawTag(117); |
| | 696 | | output.WriteFloat(SpecularIntensity); |
| | 697 | | } |
| | 698 | | if (HasEmissiveIntensity) { |
| | 699 | | output.WriteRawTag(125); |
| | 700 | | output.WriteFloat(EmissiveIntensity); |
| | 701 | | } |
| | 702 | | if (HasDirectIntensity) { |
| | 703 | | output.WriteRawTag(133, 1); |
| | 704 | | output.WriteFloat(DirectIntensity); |
| | 705 | | } |
| | 706 | | if (_unknownFields != null) { |
| | 707 | | _unknownFields.WriteTo(ref output); |
| | 708 | | } |
| | 709 | | } |
| | 710 | | #endif |
| | 711 | |
|
| | 712 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 713 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 714 | | public int CalculateSize() { |
| 0 | 715 | | int size = 0; |
| 0 | 716 | | if (texture_ != null) { |
| 0 | 717 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture); |
| | 718 | | } |
| 0 | 719 | | if (HasAlphaTest) { |
| 0 | 720 | | size += 1 + 4; |
| | 721 | | } |
| 0 | 722 | | if (HasCastShadows) { |
| 0 | 723 | | size += 1 + 1; |
| | 724 | | } |
| 0 | 725 | | if (alphaTexture_ != null) { |
| 0 | 726 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlphaTexture); |
| | 727 | | } |
| 0 | 728 | | if (emissiveTexture_ != null) { |
| 0 | 729 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveTexture); |
| | 730 | | } |
| 0 | 731 | | if (bumpTexture_ != null) { |
| 0 | 732 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(BumpTexture); |
| | 733 | | } |
| 0 | 734 | | if (albedoColor_ != null) { |
| 0 | 735 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlbedoColor); |
| | 736 | | } |
| 0 | 737 | | if (emissiveColor_ != null) { |
| 0 | 738 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmissiveColor); |
| | 739 | | } |
| 0 | 740 | | if (reflectivityColor_ != null) { |
| 0 | 741 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReflectivityColor); |
| | 742 | | } |
| 0 | 743 | | if (HasTransparencyMode) { |
| 0 | 744 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TransparencyMode); |
| | 745 | | } |
| 0 | 746 | | if (HasMetallic) { |
| 0 | 747 | | size += 1 + 4; |
| | 748 | | } |
| 0 | 749 | | if (HasRoughness) { |
| 0 | 750 | | size += 1 + 4; |
| | 751 | | } |
| 0 | 752 | | if (HasGlossiness) { |
| 0 | 753 | | size += 1 + 4; |
| | 754 | | } |
| 0 | 755 | | if (HasSpecularIntensity) { |
| 0 | 756 | | size += 1 + 4; |
| | 757 | | } |
| 0 | 758 | | if (HasEmissiveIntensity) { |
| 0 | 759 | | size += 1 + 4; |
| | 760 | | } |
| 0 | 761 | | if (HasDirectIntensity) { |
| 0 | 762 | | size += 2 + 4; |
| | 763 | | } |
| 0 | 764 | | if (_unknownFields != null) { |
| 0 | 765 | | size += _unknownFields.CalculateSize(); |
| | 766 | | } |
| 0 | 767 | | return size; |
| | 768 | | } |
| | 769 | |
|
| | 770 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 771 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 772 | | public void MergeFrom(PBMaterial other) { |
| 0 | 773 | | if (other == null) { |
| 0 | 774 | | return; |
| | 775 | | } |
| 0 | 776 | | if (other.texture_ != null) { |
| 0 | 777 | | if (texture_ == null) { |
| 0 | 778 | | Texture = new global::DCL.ECSComponents.TextureUnion(); |
| | 779 | | } |
| 0 | 780 | | Texture.MergeFrom(other.Texture); |
| | 781 | | } |
| 0 | 782 | | if (other.HasAlphaTest) { |
| 0 | 783 | | AlphaTest = other.AlphaTest; |
| | 784 | | } |
| 0 | 785 | | if (other.HasCastShadows) { |
| 0 | 786 | | CastShadows = other.CastShadows; |
| | 787 | | } |
| 0 | 788 | | if (other.alphaTexture_ != null) { |
| 0 | 789 | | if (alphaTexture_ == null) { |
| 0 | 790 | | AlphaTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 791 | | } |
| 0 | 792 | | AlphaTexture.MergeFrom(other.AlphaTexture); |
| | 793 | | } |
| 0 | 794 | | if (other.emissiveTexture_ != null) { |
| 0 | 795 | | if (emissiveTexture_ == null) { |
| 0 | 796 | | EmissiveTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 797 | | } |
| 0 | 798 | | EmissiveTexture.MergeFrom(other.EmissiveTexture); |
| | 799 | | } |
| 0 | 800 | | if (other.bumpTexture_ != null) { |
| 0 | 801 | | if (bumpTexture_ == null) { |
| 0 | 802 | | BumpTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 803 | | } |
| 0 | 804 | | BumpTexture.MergeFrom(other.BumpTexture); |
| | 805 | | } |
| 0 | 806 | | if (other.albedoColor_ != null) { |
| 0 | 807 | | if (albedoColor_ == null) { |
| 0 | 808 | | AlbedoColor = new global::DCL.ECSComponents.Color3(); |
| | 809 | | } |
| 0 | 810 | | AlbedoColor.MergeFrom(other.AlbedoColor); |
| | 811 | | } |
| 0 | 812 | | if (other.emissiveColor_ != null) { |
| 0 | 813 | | if (emissiveColor_ == null) { |
| 0 | 814 | | EmissiveColor = new global::DCL.ECSComponents.Color3(); |
| | 815 | | } |
| 0 | 816 | | EmissiveColor.MergeFrom(other.EmissiveColor); |
| | 817 | | } |
| 0 | 818 | | if (other.reflectivityColor_ != null) { |
| 0 | 819 | | if (reflectivityColor_ == null) { |
| 0 | 820 | | ReflectivityColor = new global::DCL.ECSComponents.Color3(); |
| | 821 | | } |
| 0 | 822 | | ReflectivityColor.MergeFrom(other.ReflectivityColor); |
| | 823 | | } |
| 0 | 824 | | if (other.HasTransparencyMode) { |
| 0 | 825 | | TransparencyMode = other.TransparencyMode; |
| | 826 | | } |
| 0 | 827 | | if (other.HasMetallic) { |
| 0 | 828 | | Metallic = other.Metallic; |
| | 829 | | } |
| 0 | 830 | | if (other.HasRoughness) { |
| 0 | 831 | | Roughness = other.Roughness; |
| | 832 | | } |
| 0 | 833 | | if (other.HasGlossiness) { |
| 0 | 834 | | Glossiness = other.Glossiness; |
| | 835 | | } |
| 0 | 836 | | if (other.HasSpecularIntensity) { |
| 0 | 837 | | SpecularIntensity = other.SpecularIntensity; |
| | 838 | | } |
| 0 | 839 | | if (other.HasEmissiveIntensity) { |
| 0 | 840 | | EmissiveIntensity = other.EmissiveIntensity; |
| | 841 | | } |
| 0 | 842 | | if (other.HasDirectIntensity) { |
| 0 | 843 | | DirectIntensity = other.DirectIntensity; |
| | 844 | | } |
| 0 | 845 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 846 | | } |
| | 847 | |
|
| | 848 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 849 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 850 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 851 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 852 | | input.ReadRawMessage(this); |
| | 853 | | #else |
| | 854 | | uint tag; |
| 0 | 855 | | while ((tag = input.ReadTag()) != 0) { |
| | 856 | | switch(tag) { |
| | 857 | | default: |
| 0 | 858 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 859 | | break; |
| | 860 | | case 10: { |
| 0 | 861 | | if (texture_ == null) { |
| 0 | 862 | | Texture = new global::DCL.ECSComponents.TextureUnion(); |
| | 863 | | } |
| 0 | 864 | | input.ReadMessage(Texture); |
| 0 | 865 | | break; |
| | 866 | | } |
| | 867 | | case 21: { |
| 0 | 868 | | AlphaTest = input.ReadFloat(); |
| 0 | 869 | | break; |
| | 870 | | } |
| | 871 | | case 24: { |
| 0 | 872 | | CastShadows = input.ReadBool(); |
| 0 | 873 | | break; |
| | 874 | | } |
| | 875 | | case 34: { |
| 0 | 876 | | if (alphaTexture_ == null) { |
| 0 | 877 | | AlphaTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 878 | | } |
| 0 | 879 | | input.ReadMessage(AlphaTexture); |
| 0 | 880 | | break; |
| | 881 | | } |
| | 882 | | case 42: { |
| 0 | 883 | | if (emissiveTexture_ == null) { |
| 0 | 884 | | EmissiveTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 885 | | } |
| 0 | 886 | | input.ReadMessage(EmissiveTexture); |
| 0 | 887 | | break; |
| | 888 | | } |
| | 889 | | case 50: { |
| 0 | 890 | | if (bumpTexture_ == null) { |
| 0 | 891 | | BumpTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 892 | | } |
| 0 | 893 | | input.ReadMessage(BumpTexture); |
| 0 | 894 | | break; |
| | 895 | | } |
| | 896 | | case 58: { |
| 0 | 897 | | if (albedoColor_ == null) { |
| 0 | 898 | | AlbedoColor = new global::DCL.ECSComponents.Color3(); |
| | 899 | | } |
| 0 | 900 | | input.ReadMessage(AlbedoColor); |
| 0 | 901 | | break; |
| | 902 | | } |
| | 903 | | case 66: { |
| 0 | 904 | | if (emissiveColor_ == null) { |
| 0 | 905 | | EmissiveColor = new global::DCL.ECSComponents.Color3(); |
| | 906 | | } |
| 0 | 907 | | input.ReadMessage(EmissiveColor); |
| 0 | 908 | | break; |
| | 909 | | } |
| | 910 | | case 74: { |
| 0 | 911 | | if (reflectivityColor_ == null) { |
| 0 | 912 | | ReflectivityColor = new global::DCL.ECSComponents.Color3(); |
| | 913 | | } |
| 0 | 914 | | input.ReadMessage(ReflectivityColor); |
| 0 | 915 | | break; |
| | 916 | | } |
| | 917 | | case 80: { |
| 0 | 918 | | TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum(); |
| 0 | 919 | | break; |
| | 920 | | } |
| | 921 | | case 93: { |
| 0 | 922 | | Metallic = input.ReadFloat(); |
| 0 | 923 | | break; |
| | 924 | | } |
| | 925 | | case 101: { |
| 0 | 926 | | Roughness = input.ReadFloat(); |
| 0 | 927 | | break; |
| | 928 | | } |
| | 929 | | case 109: { |
| 0 | 930 | | Glossiness = input.ReadFloat(); |
| 0 | 931 | | break; |
| | 932 | | } |
| | 933 | | case 117: { |
| 0 | 934 | | SpecularIntensity = input.ReadFloat(); |
| 0 | 935 | | break; |
| | 936 | | } |
| | 937 | | case 125: { |
| 0 | 938 | | EmissiveIntensity = input.ReadFloat(); |
| 0 | 939 | | break; |
| | 940 | | } |
| | 941 | | case 133: { |
| 0 | 942 | | DirectIntensity = input.ReadFloat(); |
| | 943 | | break; |
| | 944 | | } |
| | 945 | | } |
| | 946 | | } |
| | 947 | | #endif |
| 0 | 948 | | } |
| | 949 | |
|
| | 950 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 951 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 952 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 953 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 954 | | uint tag; |
| | 955 | | while ((tag = input.ReadTag()) != 0) { |
| | 956 | | switch(tag) { |
| | 957 | | default: |
| | 958 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 959 | | break; |
| | 960 | | case 10: { |
| | 961 | | if (texture_ == null) { |
| | 962 | | Texture = new global::DCL.ECSComponents.TextureUnion(); |
| | 963 | | } |
| | 964 | | input.ReadMessage(Texture); |
| | 965 | | break; |
| | 966 | | } |
| | 967 | | case 21: { |
| | 968 | | AlphaTest = input.ReadFloat(); |
| | 969 | | break; |
| | 970 | | } |
| | 971 | | case 24: { |
| | 972 | | CastShadows = input.ReadBool(); |
| | 973 | | break; |
| | 974 | | } |
| | 975 | | case 34: { |
| | 976 | | if (alphaTexture_ == null) { |
| | 977 | | AlphaTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 978 | | } |
| | 979 | | input.ReadMessage(AlphaTexture); |
| | 980 | | break; |
| | 981 | | } |
| | 982 | | case 42: { |
| | 983 | | if (emissiveTexture_ == null) { |
| | 984 | | EmissiveTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 985 | | } |
| | 986 | | input.ReadMessage(EmissiveTexture); |
| | 987 | | break; |
| | 988 | | } |
| | 989 | | case 50: { |
| | 990 | | if (bumpTexture_ == null) { |
| | 991 | | BumpTexture = new global::DCL.ECSComponents.TextureUnion(); |
| | 992 | | } |
| | 993 | | input.ReadMessage(BumpTexture); |
| | 994 | | break; |
| | 995 | | } |
| | 996 | | case 58: { |
| | 997 | | if (albedoColor_ == null) { |
| | 998 | | AlbedoColor = new global::DCL.ECSComponents.Color3(); |
| | 999 | | } |
| | 1000 | | input.ReadMessage(AlbedoColor); |
| | 1001 | | break; |
| | 1002 | | } |
| | 1003 | | case 66: { |
| | 1004 | | if (emissiveColor_ == null) { |
| | 1005 | | EmissiveColor = new global::DCL.ECSComponents.Color3(); |
| | 1006 | | } |
| | 1007 | | input.ReadMessage(EmissiveColor); |
| | 1008 | | break; |
| | 1009 | | } |
| | 1010 | | case 74: { |
| | 1011 | | if (reflectivityColor_ == null) { |
| | 1012 | | ReflectivityColor = new global::DCL.ECSComponents.Color3(); |
| | 1013 | | } |
| | 1014 | | input.ReadMessage(ReflectivityColor); |
| | 1015 | | break; |
| | 1016 | | } |
| | 1017 | | case 80: { |
| | 1018 | | TransparencyMode = (global::DCL.ECSComponents.MaterialTransparencyMode) input.ReadEnum(); |
| | 1019 | | break; |
| | 1020 | | } |
| | 1021 | | case 93: { |
| | 1022 | | Metallic = input.ReadFloat(); |
| | 1023 | | break; |
| | 1024 | | } |
| | 1025 | | case 101: { |
| | 1026 | | Roughness = input.ReadFloat(); |
| | 1027 | | break; |
| | 1028 | | } |
| | 1029 | | case 109: { |
| | 1030 | | Glossiness = input.ReadFloat(); |
| | 1031 | | break; |
| | 1032 | | } |
| | 1033 | | case 117: { |
| | 1034 | | SpecularIntensity = input.ReadFloat(); |
| | 1035 | | break; |
| | 1036 | | } |
| | 1037 | | case 125: { |
| | 1038 | | EmissiveIntensity = input.ReadFloat(); |
| | 1039 | | break; |
| | 1040 | | } |
| | 1041 | | case 133: { |
| | 1042 | | DirectIntensity = input.ReadFloat(); |
| | 1043 | | break; |
| | 1044 | | } |
| | 1045 | | } |
| | 1046 | | } |
| | 1047 | | } |
| | 1048 | | #endif |
| | 1049 | |
|
| | 1050 | | } |
| | 1051 | |
|
| | 1052 | | #endregion |
| | 1053 | |
|
| | 1054 | | } |
| | 1055 | |
|
| | 1056 | | #endregion Designer generated code |