Files
Dec2017-Script-Dump/UnityEngine/Material.cs
T
2026-06-04 11:42:34 +02:00

938 lines
29 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine.Internal;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x020000B3 RID: 179
public class Material : Object
{
// Token: 0x06000D88 RID: 3464 RVA: 0x00012AE4 File Offset: 0x00010CE4
[Obsolete("Creating materials from shader source string is no longer supported. Use Shader assets instead.")]
public Material(string contents)
{
Material.Internal_CreateWithString(this, contents);
}
// Token: 0x06000D89 RID: 3465 RVA: 0x00012AF4 File Offset: 0x00010CF4
public Material(Shader shader)
{
Material.Internal_CreateWithShader(this, shader);
}
// Token: 0x06000D8A RID: 3466 RVA: 0x00012B04 File Offset: 0x00010D04
public Material(Material source)
{
Material.Internal_CreateWithMaterial(this, source);
}
// Token: 0x170002DD RID: 733
// (get) Token: 0x06000D8B RID: 3467
// (set) Token: 0x06000D8C RID: 3468
public extern Shader shader
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170002DE RID: 734
// (get) Token: 0x06000D8D RID: 3469 RVA: 0x00012B14 File Offset: 0x00010D14
// (set) Token: 0x06000D8E RID: 3470 RVA: 0x00012B34 File Offset: 0x00010D34
public Color color
{
get
{
return this.GetColor("_Color");
}
set
{
this.SetColor("_Color", value);
}
}
// Token: 0x170002DF RID: 735
// (get) Token: 0x06000D8F RID: 3471 RVA: 0x00012B44 File Offset: 0x00010D44
// (set) Token: 0x06000D90 RID: 3472 RVA: 0x00012B64 File Offset: 0x00010D64
public Texture mainTexture
{
get
{
return this.GetTexture("_MainTex");
}
set
{
this.SetTexture("_MainTex", value);
}
}
// Token: 0x170002E0 RID: 736
// (get) Token: 0x06000D91 RID: 3473 RVA: 0x00012B74 File Offset: 0x00010D74
// (set) Token: 0x06000D92 RID: 3474 RVA: 0x00012B94 File Offset: 0x00010D94
public Vector2 mainTextureOffset
{
get
{
return this.GetTextureOffset("_MainTex");
}
set
{
this.SetTextureOffset("_MainTex", value);
}
}
// Token: 0x170002E1 RID: 737
// (get) Token: 0x06000D93 RID: 3475 RVA: 0x00012BA4 File Offset: 0x00010DA4
// (set) Token: 0x06000D94 RID: 3476 RVA: 0x00012BC4 File Offset: 0x00010DC4
public Vector2 mainTextureScale
{
get
{
return this.GetTextureScale("_MainTex");
}
set
{
this.SetTextureScale("_MainTex", value);
}
}
// Token: 0x06000D95 RID: 3477
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetFloatImpl(int nameID, float value);
// Token: 0x06000D96 RID: 3478
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetIntImpl(int nameID, int value);
// Token: 0x06000D97 RID: 3479 RVA: 0x00012BD4 File Offset: 0x00010DD4
private void SetColorImpl(int nameID, Color value)
{
Material.INTERNAL_CALL_SetColorImpl(this, nameID, ref value);
}
// Token: 0x06000D98 RID: 3480
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetColorImpl(Material self, int nameID, ref Color value);
// Token: 0x06000D99 RID: 3481 RVA: 0x00012BE0 File Offset: 0x00010DE0
private void SetVectorImpl(int nameID, Vector4 value)
{
Material.INTERNAL_CALL_SetVectorImpl(this, nameID, ref value);
}
// Token: 0x06000D9A RID: 3482
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetVectorImpl(Material self, int nameID, ref Vector4 value);
// Token: 0x06000D9B RID: 3483 RVA: 0x00012BEC File Offset: 0x00010DEC
private void SetMatrixImpl(int nameID, Matrix4x4 value)
{
Material.INTERNAL_CALL_SetMatrixImpl(this, nameID, ref value);
}
// Token: 0x06000D9C RID: 3484
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetMatrixImpl(Material self, int nameID, ref Matrix4x4 value);
// Token: 0x06000D9D RID: 3485
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetTextureImpl(int nameID, Texture value);
// Token: 0x06000D9E RID: 3486
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetBufferImpl(int nameID, ComputeBuffer value);
// Token: 0x06000D9F RID: 3487
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetFloatArrayImpl(int nameID, float[] values);
// Token: 0x06000DA0 RID: 3488
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetVectorArrayImpl(int nameID, Vector4[] values);
// Token: 0x06000DA1 RID: 3489
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetMatrixArrayImpl(int nameID, Matrix4x4[] values);
// Token: 0x06000DA2 RID: 3490
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern Array ExtractArrayFromList(object list);
// Token: 0x06000DA3 RID: 3491
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern float GetFloatImpl(int nameID);
// Token: 0x06000DA4 RID: 3492
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern int GetIntImpl(int nameID);
// Token: 0x06000DA5 RID: 3493 RVA: 0x00012BF8 File Offset: 0x00010DF8
private Color GetColorImpl(int nameID)
{
Color color;
Material.INTERNAL_CALL_GetColorImpl(this, nameID, out color);
return color;
}
// Token: 0x06000DA6 RID: 3494
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetColorImpl(Material self, int nameID, out Color value);
// Token: 0x06000DA7 RID: 3495 RVA: 0x00012C18 File Offset: 0x00010E18
private Vector4 GetVectorImpl(int nameID)
{
Vector4 vector;
Material.INTERNAL_CALL_GetVectorImpl(this, nameID, out vector);
return vector;
}
// Token: 0x06000DA8 RID: 3496
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetVectorImpl(Material self, int nameID, out Vector4 value);
// Token: 0x06000DA9 RID: 3497 RVA: 0x00012C38 File Offset: 0x00010E38
private Matrix4x4 GetMatrixImpl(int nameID)
{
Matrix4x4 matrix4x;
Material.INTERNAL_CALL_GetMatrixImpl(this, nameID, out matrix4x);
return matrix4x;
}
// Token: 0x06000DAA RID: 3498
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetMatrixImpl(Material self, int nameID, out Matrix4x4 value);
// Token: 0x06000DAB RID: 3499
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Texture GetTextureImpl(int nameID);
// Token: 0x06000DAC RID: 3500
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern float[] GetFloatArrayImpl(int nameID);
// Token: 0x06000DAD RID: 3501
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Vector4[] GetVectorArrayImpl(int nameID);
// Token: 0x06000DAE RID: 3502
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Matrix4x4[] GetMatrixArrayImpl(int nameID);
// Token: 0x06000DAF RID: 3503
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void GetFloatArrayImplList(int nameID, object list);
// Token: 0x06000DB0 RID: 3504
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void GetVectorArrayImplList(int nameID, object list);
// Token: 0x06000DB1 RID: 3505
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void GetMatrixArrayImplList(int nameID, object list);
// Token: 0x06000DB2 RID: 3506
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetColorArrayImpl(int nameID, Color[] values);
// Token: 0x06000DB3 RID: 3507
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void SetColorArrayImplList(int nameID, object values);
// Token: 0x06000DB4 RID: 3508
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern Color[] GetColorArrayImpl(int nameID);
// Token: 0x06000DB5 RID: 3509
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private extern void GetColorArrayImplList(int nameID, object list);
// Token: 0x06000DB6 RID: 3510 RVA: 0x00012C58 File Offset: 0x00010E58
private Vector4 GetTextureScaleAndOffsetImpl(int nameID)
{
Vector4 vector;
Material.INTERNAL_CALL_GetTextureScaleAndOffsetImpl(this, nameID, out vector);
return vector;
}
// Token: 0x06000DB7 RID: 3511
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_GetTextureScaleAndOffsetImpl(Material self, int nameID, out Vector4 value);
// Token: 0x06000DB8 RID: 3512 RVA: 0x00012C78 File Offset: 0x00010E78
private void SetTextureOffsetImpl(int nameID, Vector2 offset)
{
Material.INTERNAL_CALL_SetTextureOffsetImpl(this, nameID, ref offset);
}
// Token: 0x06000DB9 RID: 3513
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetTextureOffsetImpl(Material self, int nameID, ref Vector2 offset);
// Token: 0x06000DBA RID: 3514 RVA: 0x00012C84 File Offset: 0x00010E84
private void SetTextureScaleImpl(int nameID, Vector2 scale)
{
Material.INTERNAL_CALL_SetTextureScaleImpl(this, nameID, ref scale);
}
// Token: 0x06000DBB RID: 3515
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void INTERNAL_CALL_SetTextureScaleImpl(Material self, int nameID, ref Vector2 scale);
// Token: 0x06000DBC RID: 3516 RVA: 0x00012C90 File Offset: 0x00010E90
public bool HasProperty(string propertyName)
{
return this.HasProperty(Shader.PropertyToID(propertyName));
}
// Token: 0x06000DBD RID: 3517
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool HasProperty(int nameID);
// Token: 0x06000DBE RID: 3518
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern string GetTag(string tag, bool searchFallbacks, [DefaultValue("\"\"")] string defaultValue);
// Token: 0x06000DBF RID: 3519 RVA: 0x00012CB4 File Offset: 0x00010EB4
[ExcludeFromDocs]
public string GetTag(string tag, bool searchFallbacks)
{
string text = "";
return this.GetTag(tag, searchFallbacks, text);
}
// Token: 0x06000DC0 RID: 3520
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetOverrideTag(string tag, string val);
// Token: 0x06000DC1 RID: 3521
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void SetShaderPassEnabled(string passName, bool enabled);
// Token: 0x06000DC2 RID: 3522
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool GetShaderPassEnabled(string passName);
// Token: 0x06000DC3 RID: 3523
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void Lerp(Material start, Material end, float t);
// Token: 0x170002E2 RID: 738
// (get) Token: 0x06000DC4 RID: 3524
public extern int passCount
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
}
// Token: 0x06000DC5 RID: 3525
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool SetPass(int pass);
// Token: 0x06000DC6 RID: 3526
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern string GetPassName(int pass);
// Token: 0x06000DC7 RID: 3527
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern int FindPass(string passName);
// Token: 0x170002E3 RID: 739
// (get) Token: 0x06000DC8 RID: 3528
// (set) Token: 0x06000DC9 RID: 3529
public extern int renderQueue
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x06000DCA RID: 3530 RVA: 0x00012CD8 File Offset: 0x00010ED8
[Obsolete("Creating materials from shader source string will be removed in the future. Use Shader assets instead.")]
public static Material Create(string scriptContents)
{
return new Material(scriptContents);
}
// Token: 0x06000DCB RID: 3531
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_CreateWithString([Writable] Material mono, string contents);
// Token: 0x06000DCC RID: 3532
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_CreateWithShader([Writable] Material mono, Shader shader);
// Token: 0x06000DCD RID: 3533
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern void Internal_CreateWithMaterial([Writable] Material mono, Material source);
// Token: 0x06000DCE RID: 3534
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void CopyPropertiesFromMaterial(Material mat);
// Token: 0x06000DCF RID: 3535
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void EnableKeyword(string keyword);
// Token: 0x06000DD0 RID: 3536
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern void DisableKeyword(string keyword);
// Token: 0x06000DD1 RID: 3537
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
public extern bool IsKeywordEnabled(string keyword);
// Token: 0x170002E4 RID: 740
// (get) Token: 0x06000DD2 RID: 3538
// (set) Token: 0x06000DD3 RID: 3539
public extern string[] shaderKeywords
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170002E5 RID: 741
// (get) Token: 0x06000DD4 RID: 3540
// (set) Token: 0x06000DD5 RID: 3541
public extern MaterialGlobalIlluminationFlags globalIlluminationFlags
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170002E6 RID: 742
// (get) Token: 0x06000DD6 RID: 3542
// (set) Token: 0x06000DD7 RID: 3543
public extern bool enableInstancing
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x170002E7 RID: 743
// (get) Token: 0x06000DD8 RID: 3544
// (set) Token: 0x06000DD9 RID: 3545
public extern bool doubleSidedGI
{
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
get;
[GeneratedByOldBindingsGenerator]
[MethodImpl(MethodImplOptions.InternalCall)]
set;
}
// Token: 0x06000DDA RID: 3546 RVA: 0x00012CF4 File Offset: 0x00010EF4
public void SetFloat(string name, float value)
{
this.SetFloat(Shader.PropertyToID(name), value);
}
// Token: 0x06000DDB RID: 3547 RVA: 0x00012D04 File Offset: 0x00010F04
public void SetFloat(int nameID, float value)
{
this.SetFloatImpl(nameID, value);
}
// Token: 0x06000DDC RID: 3548 RVA: 0x00012D10 File Offset: 0x00010F10
public void SetInt(string name, int value)
{
this.SetInt(Shader.PropertyToID(name), value);
}
// Token: 0x06000DDD RID: 3549 RVA: 0x00012D20 File Offset: 0x00010F20
public void SetInt(int nameID, int value)
{
this.SetIntImpl(nameID, value);
}
// Token: 0x06000DDE RID: 3550 RVA: 0x00012D2C File Offset: 0x00010F2C
public void SetColor(string name, Color value)
{
this.SetColor(Shader.PropertyToID(name), value);
}
// Token: 0x06000DDF RID: 3551 RVA: 0x00012D3C File Offset: 0x00010F3C
public void SetColor(int nameID, Color value)
{
this.SetColorImpl(nameID, value);
}
// Token: 0x06000DE0 RID: 3552 RVA: 0x00012D48 File Offset: 0x00010F48
public void SetVector(string name, Vector4 value)
{
this.SetVector(Shader.PropertyToID(name), value);
}
// Token: 0x06000DE1 RID: 3553 RVA: 0x00012D58 File Offset: 0x00010F58
public void SetVector(int nameID, Vector4 value)
{
this.SetVectorImpl(nameID, value);
}
// Token: 0x06000DE2 RID: 3554 RVA: 0x00012D64 File Offset: 0x00010F64
public void SetMatrix(string name, Matrix4x4 value)
{
this.SetMatrix(Shader.PropertyToID(name), value);
}
// Token: 0x06000DE3 RID: 3555 RVA: 0x00012D74 File Offset: 0x00010F74
public void SetMatrix(int nameID, Matrix4x4 value)
{
this.SetMatrixImpl(nameID, value);
}
// Token: 0x06000DE4 RID: 3556 RVA: 0x00012D80 File Offset: 0x00010F80
public void SetTexture(string name, Texture value)
{
this.SetTexture(Shader.PropertyToID(name), value);
}
// Token: 0x06000DE5 RID: 3557 RVA: 0x00012D90 File Offset: 0x00010F90
public void SetTexture(int nameID, Texture value)
{
this.SetTextureImpl(nameID, value);
}
// Token: 0x06000DE6 RID: 3558 RVA: 0x00012D9C File Offset: 0x00010F9C
public void SetBuffer(string name, ComputeBuffer value)
{
this.SetBuffer(Shader.PropertyToID(name), value);
}
// Token: 0x06000DE7 RID: 3559 RVA: 0x00012DAC File Offset: 0x00010FAC
public void SetBuffer(int nameID, ComputeBuffer value)
{
this.SetBufferImpl(nameID, value);
}
// Token: 0x06000DE8 RID: 3560 RVA: 0x00012DB8 File Offset: 0x00010FB8
public void SetTextureOffset(string name, Vector2 value)
{
this.SetTextureOffset(Shader.PropertyToID(name), value);
}
// Token: 0x06000DE9 RID: 3561 RVA: 0x00012DC8 File Offset: 0x00010FC8
public void SetTextureOffset(int nameID, Vector2 value)
{
this.SetTextureOffsetImpl(nameID, value);
}
// Token: 0x06000DEA RID: 3562 RVA: 0x00012DD4 File Offset: 0x00010FD4
public void SetTextureScale(string name, Vector2 value)
{
this.SetTextureScale(Shader.PropertyToID(name), value);
}
// Token: 0x06000DEB RID: 3563 RVA: 0x00012DE4 File Offset: 0x00010FE4
public void SetTextureScale(int nameID, Vector2 value)
{
this.SetTextureScaleImpl(nameID, value);
}
// Token: 0x06000DEC RID: 3564 RVA: 0x00012DF0 File Offset: 0x00010FF0
public void SetFloatArray(string name, List<float> values)
{
this.SetFloatArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DED RID: 3565 RVA: 0x00012E00 File Offset: 0x00011000
public void SetFloatArray(int nameID, List<float> values)
{
this.SetFloatArray(nameID, (float[])Material.ExtractArrayFromList(values));
}
// Token: 0x06000DEE RID: 3566 RVA: 0x00012E18 File Offset: 0x00011018
public void SetFloatArray(string name, float[] values)
{
this.SetFloatArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DEF RID: 3567 RVA: 0x00012E28 File Offset: 0x00011028
public void SetFloatArray(int nameID, float[] values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
if (values.Length == 0)
{
throw new ArgumentException("Zero-sized array is not allowed.");
}
this.SetFloatArrayImpl(nameID, values);
}
// Token: 0x06000DF0 RID: 3568 RVA: 0x00012E58 File Offset: 0x00011058
public void SetColorArray(string name, List<Color> values)
{
this.SetColorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DF1 RID: 3569 RVA: 0x00012E68 File Offset: 0x00011068
public void SetColorArray(int nameID, List<Color> values)
{
this.SetColorArray(nameID, (Color[])Material.ExtractArrayFromList(values));
}
// Token: 0x06000DF2 RID: 3570 RVA: 0x00012E80 File Offset: 0x00011080
public void SetColorArray(string name, Color[] values)
{
this.SetColorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DF3 RID: 3571 RVA: 0x00012E90 File Offset: 0x00011090
public void SetColorArray(int nameID, Color[] values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
if (values.Length == 0)
{
throw new ArgumentException("Zero-sized array is not allowed.");
}
this.SetColorArrayImpl(nameID, values);
}
// Token: 0x06000DF4 RID: 3572 RVA: 0x00012EC0 File Offset: 0x000110C0
public void SetVectorArray(string name, List<Vector4> values)
{
this.SetVectorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DF5 RID: 3573 RVA: 0x00012ED0 File Offset: 0x000110D0
public void SetVectorArray(int nameID, List<Vector4> values)
{
this.SetVectorArray(nameID, (Vector4[])Material.ExtractArrayFromList(values));
}
// Token: 0x06000DF6 RID: 3574 RVA: 0x00012EE8 File Offset: 0x000110E8
public void SetVectorArray(string name, Vector4[] values)
{
this.SetVectorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DF7 RID: 3575 RVA: 0x00012EF8 File Offset: 0x000110F8
public void SetVectorArray(int nameID, Vector4[] values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
if (values.Length == 0)
{
throw new ArgumentException("Zero-sized array is not allowed.");
}
this.SetVectorArrayImpl(nameID, values);
}
// Token: 0x06000DF8 RID: 3576 RVA: 0x00012F28 File Offset: 0x00011128
public void SetMatrixArray(string name, List<Matrix4x4> values)
{
this.SetMatrixArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DF9 RID: 3577 RVA: 0x00012F38 File Offset: 0x00011138
public void SetMatrixArray(int nameID, List<Matrix4x4> values)
{
this.SetMatrixArray(nameID, (Matrix4x4[])Material.ExtractArrayFromList(values));
}
// Token: 0x06000DFA RID: 3578 RVA: 0x00012F50 File Offset: 0x00011150
public void SetMatrixArray(string name, Matrix4x4[] values)
{
this.SetMatrixArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000DFB RID: 3579 RVA: 0x00012F60 File Offset: 0x00011160
public void SetMatrixArray(int nameID, Matrix4x4[] values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
if (values.Length == 0)
{
throw new ArgumentException("Zero-sized array is not allowed.");
}
this.SetMatrixArrayImpl(nameID, values);
}
// Token: 0x06000DFC RID: 3580 RVA: 0x00012F90 File Offset: 0x00011190
public float GetFloat(string name)
{
return this.GetFloat(Shader.PropertyToID(name));
}
// Token: 0x06000DFD RID: 3581 RVA: 0x00012FB4 File Offset: 0x000111B4
public float GetFloat(int nameID)
{
return this.GetFloatImpl(nameID);
}
// Token: 0x06000DFE RID: 3582 RVA: 0x00012FD0 File Offset: 0x000111D0
public int GetInt(string name)
{
return this.GetInt(Shader.PropertyToID(name));
}
// Token: 0x06000DFF RID: 3583 RVA: 0x00012FF4 File Offset: 0x000111F4
public int GetInt(int nameID)
{
return this.GetIntImpl(nameID);
}
// Token: 0x06000E00 RID: 3584 RVA: 0x00013010 File Offset: 0x00011210
public Color GetColor(string name)
{
return this.GetColor(Shader.PropertyToID(name));
}
// Token: 0x06000E01 RID: 3585 RVA: 0x00013034 File Offset: 0x00011234
public Color GetColor(int nameID)
{
return this.GetColorImpl(nameID);
}
// Token: 0x06000E02 RID: 3586 RVA: 0x00013050 File Offset: 0x00011250
public Vector4 GetVector(string name)
{
return this.GetVector(Shader.PropertyToID(name));
}
// Token: 0x06000E03 RID: 3587 RVA: 0x00013074 File Offset: 0x00011274
public Vector4 GetVector(int nameID)
{
return this.GetVectorImpl(nameID);
}
// Token: 0x06000E04 RID: 3588 RVA: 0x00013090 File Offset: 0x00011290
public Matrix4x4 GetMatrix(string name)
{
return this.GetMatrix(Shader.PropertyToID(name));
}
// Token: 0x06000E05 RID: 3589 RVA: 0x000130B4 File Offset: 0x000112B4
public Matrix4x4 GetMatrix(int nameID)
{
return this.GetMatrixImpl(nameID);
}
// Token: 0x06000E06 RID: 3590 RVA: 0x000130D0 File Offset: 0x000112D0
public void GetFloatArray(string name, List<float> values)
{
this.GetFloatArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000E07 RID: 3591 RVA: 0x000130E0 File Offset: 0x000112E0
public void GetFloatArray(int nameID, List<float> values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
this.GetFloatArrayImplList(nameID, values);
}
// Token: 0x06000E08 RID: 3592 RVA: 0x000130FC File Offset: 0x000112FC
public float[] GetFloatArray(string name)
{
return this.GetFloatArray(Shader.PropertyToID(name));
}
// Token: 0x06000E09 RID: 3593 RVA: 0x00013120 File Offset: 0x00011320
public float[] GetFloatArray(int nameID)
{
return this.GetFloatArrayImpl(nameID);
}
// Token: 0x06000E0A RID: 3594 RVA: 0x0001313C File Offset: 0x0001133C
public void GetVectorArray(string name, List<Vector4> values)
{
this.GetVectorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000E0B RID: 3595 RVA: 0x0001314C File Offset: 0x0001134C
public void GetVectorArray(int nameID, List<Vector4> values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
this.GetVectorArrayImplList(nameID, values);
}
// Token: 0x06000E0C RID: 3596 RVA: 0x00013168 File Offset: 0x00011368
public Color[] GetColorArray(string name)
{
return this.GetColorArray(Shader.PropertyToID(name));
}
// Token: 0x06000E0D RID: 3597 RVA: 0x0001318C File Offset: 0x0001138C
public Color[] GetColorArray(int nameID)
{
return this.GetColorArrayImpl(nameID);
}
// Token: 0x06000E0E RID: 3598 RVA: 0x000131A8 File Offset: 0x000113A8
public void GetColorArray(string name, List<Color> values)
{
this.GetColorArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000E0F RID: 3599 RVA: 0x000131B8 File Offset: 0x000113B8
public void GetColorArray(int nameID, List<Color> values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
this.GetColorArrayImplList(nameID, values);
}
// Token: 0x06000E10 RID: 3600 RVA: 0x000131D4 File Offset: 0x000113D4
public Vector4[] GetVectorArray(string name)
{
return this.GetVectorArray(Shader.PropertyToID(name));
}
// Token: 0x06000E11 RID: 3601 RVA: 0x000131F8 File Offset: 0x000113F8
public Vector4[] GetVectorArray(int nameID)
{
return this.GetVectorArrayImpl(nameID);
}
// Token: 0x06000E12 RID: 3602 RVA: 0x00013214 File Offset: 0x00011414
public void GetMatrixArray(string name, List<Matrix4x4> values)
{
this.GetMatrixArray(Shader.PropertyToID(name), values);
}
// Token: 0x06000E13 RID: 3603 RVA: 0x00013224 File Offset: 0x00011424
public void GetMatrixArray(int nameID, List<Matrix4x4> values)
{
if (values == null)
{
throw new ArgumentNullException("values");
}
this.GetMatrixArrayImplList(nameID, values);
}
// Token: 0x06000E14 RID: 3604 RVA: 0x00013240 File Offset: 0x00011440
public Matrix4x4[] GetMatrixArray(string name)
{
return this.GetMatrixArray(Shader.PropertyToID(name));
}
// Token: 0x06000E15 RID: 3605 RVA: 0x00013264 File Offset: 0x00011464
public Matrix4x4[] GetMatrixArray(int nameID)
{
return this.GetMatrixArrayImpl(nameID);
}
// Token: 0x06000E16 RID: 3606 RVA: 0x00013280 File Offset: 0x00011480
public Texture GetTexture(string name)
{
return this.GetTexture(Shader.PropertyToID(name));
}
// Token: 0x06000E17 RID: 3607 RVA: 0x000132A4 File Offset: 0x000114A4
public Texture GetTexture(int nameID)
{
return this.GetTextureImpl(nameID);
}
// Token: 0x06000E18 RID: 3608 RVA: 0x000132C0 File Offset: 0x000114C0
public Vector2 GetTextureOffset(string name)
{
return this.GetTextureOffset(Shader.PropertyToID(name));
}
// Token: 0x06000E19 RID: 3609 RVA: 0x000132E4 File Offset: 0x000114E4
public Vector2 GetTextureOffset(int nameID)
{
Vector4 textureScaleAndOffsetImpl = this.GetTextureScaleAndOffsetImpl(nameID);
return new Vector2(textureScaleAndOffsetImpl.z, textureScaleAndOffsetImpl.w);
}
// Token: 0x06000E1A RID: 3610 RVA: 0x00013314 File Offset: 0x00011514
public Vector2 GetTextureScale(string name)
{
return this.GetTextureScale(Shader.PropertyToID(name));
}
// Token: 0x06000E1B RID: 3611 RVA: 0x00013338 File Offset: 0x00011538
public Vector2 GetTextureScale(int nameID)
{
Vector4 textureScaleAndOffsetImpl = this.GetTextureScaleAndOffsetImpl(nameID);
return new Vector2(textureScaleAndOffsetImpl.x, textureScaleAndOffsetImpl.y);
}
}
}