-
Notifications
You must be signed in to change notification settings - Fork 115
/
NormalDiffuseLoader.cs
executable file
·50 lines (45 loc) · 1.55 KB
/
NormalDiffuseLoader.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
// Material wrapper generated by shader translator tool
using System;
using Kopernicus.MaterialWrapper;
using UnityEngine;
namespace Kopernicus
{
namespace Configuration
{
[RequireConfigType(ConfigType.Node)]
public class NormalDiffuseLoader : NormalDiffuse
{
// 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; }
}
// Constructors
public NormalDiffuseLoader () : base() { }
[Obsolete("Creating materials from shader source String is no longer supported. Use Shader assets instead.")]
public NormalDiffuseLoader (String contents) : base (contents) { }
public NormalDiffuseLoader (Material material) : base(material) { }
}
}
}