44 lines
887 B
C#
44 lines
887 B
C#
using Godot;
|
|
using System.Reflection;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass]
|
|
public partial class AlbedoModule:TextureModule
|
|
{
|
|
public AlbedoModule()
|
|
{
|
|
_type = TextureChannelType.RGBA;
|
|
|
|
_domainName = "albedo";
|
|
_domainScaleName = "albedo";
|
|
|
|
_srgb = true;
|
|
}
|
|
|
|
[Export]
|
|
public TextureFilter filter = TextureFilter.Linear_MipMap_Anisotropic;
|
|
|
|
[Export]
|
|
public bool useTint = true;
|
|
|
|
[Export]
|
|
public bool srgb = true;
|
|
|
|
[Export]
|
|
public bool repeat = true;
|
|
|
|
[Export]
|
|
public TextureDefault textureDefault = TextureDefault.White;
|
|
public override void GrabValues()
|
|
{
|
|
domainMode = useTint ? DomainMode.Texture_Scale : DomainMode.Texture;
|
|
_textureFilter = filter;
|
|
_srgb = srgb;
|
|
_repeat = repeat;
|
|
_textureDefault = textureDefault;
|
|
}
|
|
}
|
|
} |