-
Notifications
You must be signed in to change notification settings - Fork 115
/
NormalBumpedLoader.cs
executable file
·72 lines (64 loc) · 2.21 KB
/
NormalBumpedLoader.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Material wrapper generated by shader translator tool
using System;
using Kopernicus.MaterialWrapper;
using UnityEngine;
namespace Kopernicus
{
namespace Configuration
{
[RequireConfigType(ConfigType.Node)]
public class NormalBumpedLoader : NormalBumped
{
// Main Color, default = (1,1,1,1)
[ParserTarget("color")]
public ColorParser colorSetter
{
get { return color; }
set { color = value; }
}
// Base (RGB), 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; }
}
// Normalmap, default = "bump" { }
[ParserTarget("bumpMap")]
public Texture2DParser bumpMapSetter
{
get { return bumpMap; }
set { bumpMap = value; }
}
[ParserTarget("bumpMapScale")]
private Vector2Parser bumpMapScaleSetter
{
get { return bumpMapScale; }
set { bumpMapScale = value; }
}
[ParserTarget("bumpMapOffset")]
private Vector2Parser bumpMapOffsetSetter
{
get { return bumpMapOffset; }
set { bumpMapOffset = value; }
}
// Constructors
public NormalBumpedLoader () : base() { }
[Obsolete("Creating materials from shader source String is no longer supported. Use Shader assets instead.")]
public NormalBumpedLoader (String contents) : base (contents) { }
public NormalBumpedLoader (Material material) : base(material) { }
}
}
}