-
Notifications
You must be signed in to change notification settings - Fork 115
/
DiffuseWrapLoader.cs
executable file
·58 lines (52 loc) · 1.76 KB
/
DiffuseWrapLoader.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Material wrapper generated by shader translator tool
using System;
using Kopernicus.MaterialWrapper;
using UnityEngine;
namespace Kopernicus
{
namespace Configuration
{
[RequireConfigType(ConfigType.Node)]
public class DiffuseWrapLoader : DiffuseWrap
{
// Texture, default = "white" { }
[ParserTarget("mainTex")]
public Texture2DParser mainTexSetter
{
get { return mainTex; }
set { mainTex = value; }
}
[ParserTarget("mainTexScale")]
private Vector2Parser mainTexScaleSetter
{
get { return mainTexScale; }
set { mainTexScale = value; }
}
[ParserTarget("mainTexOffset")]
private Vector2Parser mainTexOffsetSetter
{
get { return mainTexOffset; }
set { mainTexOffset = value; }
}
// Main Color, default = (1,1,1,1)
[ParserTarget("color")]
public ColorParser colorSetter
{
get { return color; }
set { color = value; }
}
// Diffuse, default = 2
[ParserTarget("diff")]
public NumericParser<Single> diffSetter
{
get { return diff; }
set { diff = value; }
}
// Constructors
public DiffuseWrapLoader () : base() { }
[Obsolete("Creating materials from shader source String is no longer supported. Use Shader assets instead.")]
public DiffuseWrapLoader (String contents) : base (contents) { }
public DiffuseWrapLoader (Material material) : base(material) { }
}
}
}