mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Merge branch 'master' into release
This commit is contained in:
commit
3e157faae3
@ -22,7 +22,7 @@ Shader "ConformalDecals/Feature/Bumped"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Geometry+100" }
|
Tags { "Queue" = "Geometry+100" "IgnoreProjector" = "true"}
|
||||||
Cull [_Cull]
|
Cull [_Cull]
|
||||||
Ztest LEqual
|
Ztest LEqual
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Shader "ConformalDecals/Paint/Diffuse"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Geometry+100" }
|
Tags { "Queue" = "Geometry+100" "IgnoreProjector" = "true"}
|
||||||
Cull [_Cull]
|
Cull [_Cull]
|
||||||
Ztest LEqual
|
Ztest LEqual
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ Shader "ConformalDecals/Paint/DiffuseSDF"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Geometry+100" }
|
Tags { "Queue" = "Geometry+100" "IgnoreProjector" = "true"}
|
||||||
Cull [_Cull]
|
Cull [_Cull]
|
||||||
Ztest LEqual
|
Ztest LEqual
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ Shader "ConformalDecals/Paint/Specular"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Geometry+100" }
|
Tags { "Queue" = "Geometry+100" "IgnoreProjector" = "true"}
|
||||||
Cull [_Cull]
|
Cull [_Cull]
|
||||||
Ztest LEqual
|
Ztest LEqual
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ Shader "ConformalDecals/Paint/SpecularSDF"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Geometry+100" }
|
Tags { "Queue" = "Geometry+100" "IgnoreProjector" = "true"}
|
||||||
Cull [_Cull]
|
Cull [_Cull]
|
||||||
Ztest LEqual
|
Ztest LEqual
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ Shader "ConformalDecals/SelectionGlow"
|
|||||||
}
|
}
|
||||||
SubShader
|
SubShader
|
||||||
{
|
{
|
||||||
Tags { "Queue" = "Transparent" }
|
Tags { "Queue" = "Transparent" "IgnoreProjector" = "true" }
|
||||||
Cull Back
|
Cull Back
|
||||||
ZWrite Off
|
ZWrite Off
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,7 +6,7 @@
|
|||||||
{
|
{
|
||||||
"MAJOR":0,
|
"MAJOR":0,
|
||||||
"MINOR":1,
|
"MINOR":1,
|
||||||
"PATCH":3,
|
"PATCH":4,
|
||||||
"BUILD":0
|
"BUILD":0
|
||||||
},
|
},
|
||||||
"KSP_VERSION":
|
"KSP_VERSION":
|
||||||
@ -22,7 +22,7 @@
|
|||||||
},
|
},
|
||||||
"KSP_VERSION_MAX":{
|
"KSP_VERSION_MAX":{
|
||||||
"MAJOR":1,
|
"MAJOR":1,
|
||||||
"MINOR":9,
|
"MINOR":10,
|
||||||
"PATCH":99
|
"PATCH":99
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,4 +1,4 @@
|
|||||||
# Conformal Decals v0.1.3
|
# Conformal Decals v0.1.4
|
||||||
[![Build Status](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals.svg?branch=release)](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals) [![Art: CC BY-SA 4.0](https://img.shields.io/badge/Art%20License-CC%20BY--SA%204.0-orange.svg)](https://creativecommons.org/licenses/by-sa/4.0/) [![Code: GPL v3](https://img.shields.io/badge/Code%20License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
|
[![Build Status](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals.svg?branch=release)](https://travis-ci.org/drewcassidy/KSP-Conformal-Decals) [![Art: CC BY-SA 4.0](https://img.shields.io/badge/Art%20License-CC%20BY--SA%204.0-orange.svg)](https://creativecommons.org/licenses/by-sa/4.0/) [![Code: GPL v3](https://img.shields.io/badge/Code%20License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
|
||||||
|
|
||||||
![Screenshot](http://pileof.rocks/KSP/images/ConformalDecalsHeader.png)
|
![Screenshot](http://pileof.rocks/KSP/images/ConformalDecalsHeader.png)
|
||||||
@ -8,7 +8,7 @@ Conformal Decals adds a set of decal stickers to KSP, as well as providing a fra
|
|||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
Required:
|
Required:
|
||||||
- KSP (1.8.x to 1.9.x)
|
- KSP (1.8.x to 1.10.x)
|
||||||
- B9 Part Switch (2.16.0). Bundled with release.
|
- B9 Part Switch (2.16.0). Bundled with release.
|
||||||
- ModuleManager (4.1.3). Bundled with release.
|
- ModuleManager (4.1.3). Bundled with release.
|
||||||
- Shabby (0.1.2). Bundled with release.
|
- Shabby (0.1.2). Bundled with release.
|
||||||
|
@ -237,14 +237,23 @@ namespace ConformalDecals {
|
|||||||
public override void OnStart(StartState state) {
|
public override void OnStart(StartState state) {
|
||||||
this.Log("Starting module");
|
this.Log("Starting module");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
materialProperties.RenderQueue = DecalQueue;
|
materialProperties.RenderQueue = DecalQueue;
|
||||||
|
|
||||||
_boundsRenderer = decalProjectorTransform.GetComponent<MeshRenderer>();
|
_boundsRenderer = decalProjectorTransform.GetComponent<MeshRenderer>();
|
||||||
|
|
||||||
UpdateMaterials();
|
UpdateMaterials();
|
||||||
|
|
||||||
|
// handle tweakables
|
||||||
|
if (HighLogic.LoadedSceneIsEditor) {
|
||||||
|
GameEvents.onEditorPartEvent.Add(OnEditorEvent);
|
||||||
|
GameEvents.onVariantApplied.Add(OnVariantApplied);
|
||||||
|
|
||||||
|
UpdateTweakables();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnStartFinished(StartState state) {
|
||||||
|
// handle game events
|
||||||
if (HighLogic.LoadedSceneIsGame) {
|
if (HighLogic.LoadedSceneIsGame) {
|
||||||
// set initial attachment state
|
// set initial attachment state
|
||||||
if (part.parent == null) {
|
if (part.parent == null) {
|
||||||
@ -255,26 +264,19 @@ namespace ConformalDecals {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle tweakables
|
|
||||||
if (HighLogic.LoadedSceneIsEditor) {
|
|
||||||
GameEvents.onEditorPartEvent.Add(OnEditorEvent);
|
|
||||||
GameEvents.onVariantApplied.Add(OnVariantApplied);
|
|
||||||
|
|
||||||
UpdateTweakables();
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle flight events
|
// handle flight events
|
||||||
if (HighLogic.LoadedSceneIsFlight) {
|
if (HighLogic.LoadedSceneIsFlight) {
|
||||||
GameEvents.onPartWillDie.Add(OnPartWillDie);
|
GameEvents.onPartWillDie.Add(OnPartWillDie);
|
||||||
|
|
||||||
|
if (part.parent == null) part.explode();
|
||||||
|
|
||||||
Part.layerMask |= 1 << DecalConfig.DecalLayer;
|
Part.layerMask |= 1 << DecalConfig.DecalLayer;
|
||||||
decalColliderTransform.gameObject.layer = DecalConfig.DecalLayer;
|
decalColliderTransform.gameObject.layer = DecalConfig.DecalLayer;
|
||||||
|
|
||||||
if (!selectableInFlight || !DecalConfig.SelectableInFlight) {
|
if (!selectableInFlight || !DecalConfig.SelectableInFlight) {
|
||||||
decalColliderTransform.GetComponent<Collider>().enabled = false;
|
decalColliderTransform.GetComponent<Collider>().enabled = false;
|
||||||
|
_boundsRenderer.enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (part.parent == null) part.explode();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
v0.1.4
|
||||||
|
------
|
||||||
|
- Supported KSP versions: 1.8.x to 1.10.x
|
||||||
|
- Fixes:
|
||||||
|
- Fixed decals rendering onto disabled B9PS part variants
|
||||||
|
- Decals will still not update whan their parent part's B9PS variant is changed, both in flight and in the editor. This is known and awaiting a change to B9PS to be fixed.
|
||||||
|
- Fixed decal bounds rendering as dark cubes when shadowed by EVE clouds.
|
||||||
|
- Fixed decals being shadowed by EVE clouds, causing the part underneath to appear overly dark.
|
||||||
|
|
||||||
v0.1.3
|
v0.1.3
|
||||||
------
|
------
|
||||||
Fixes:
|
Fixes:
|
||||||
@ -10,8 +19,6 @@ Changes:
|
|||||||
- Small refactor of node parsing code
|
- Small refactor of node parsing code
|
||||||
- Colors can now be specified in hex (#RGB, #RGBA, #RRGGBB, or #RRGGBBAA) or using the colors specified in the XKCDColors class
|
- Colors can now be specified in hex (#RGB, #RGBA, #RRGGBB, or #RRGGBBAA) or using the colors specified in the XKCDColors class
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
v0.1.2
|
v0.1.2
|
||||||
------
|
------
|
||||||
Fixes:
|
Fixes:
|
||||||
|
Loading…
Reference in New Issue
Block a user