mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-06-11 05:54:07 +00:00
make normal map gen less dumb
This commit is contained in:
parent
9dc98a6f9d
commit
fc6820d73b
Binary file not shown.
|
@ -111,12 +111,8 @@ namespace ConformalDecals {
|
|||
var colors = new[] {color, color, color, color};
|
||||
|
||||
var tex = new Texture2D(width, height, TextureFormat.RGBA32, false);
|
||||
for (var x = 0; x <= width; x++) {
|
||||
for (var y = 0; y < height; y++) {
|
||||
tex.SetPixels32(colors);
|
||||
}
|
||||
}
|
||||
|
||||
tex.SetPixels32(colors);
|
||||
tex.Apply();
|
||||
|
||||
return tex;
|
||||
|
@ -130,7 +126,7 @@ namespace ConformalDecals {
|
|||
var configs = GameDatabase.Instance.GetConfigs("CONFORMALDECALS");
|
||||
|
||||
if (configs.Length > 0) {
|
||||
Logging.Log("loading config");
|
||||
Logging.Log("Loading config");
|
||||
foreach (var config in configs) {
|
||||
ParseConfig(config.config);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user