mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
Temporarily remove nonfunctional intersection code
Will probably fix at a later date, but its not needed for the plugin to work
This commit is contained in:
parent
1dddb97ca9
commit
de2f42a09f
Binary file not shown.
@ -22,8 +22,6 @@ namespace ConformalDecals {
|
||||
}
|
||||
|
||||
public void Project(Matrix4x4 orthoMatrix, OrientedBounds projectorBounds, Transform projector, bool useBaseNormal) {
|
||||
var targetBounds = _targetRenderer.bounds;
|
||||
if (projectorBounds.Intersects(targetBounds)) {
|
||||
_projectionEnabled = true;
|
||||
|
||||
var targetMaterial = _targetRenderer.sharedMaterial;
|
||||
@ -50,10 +48,6 @@ namespace ConformalDecals {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
_projectionEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Render(Material decalMaterial, MaterialPropertyBlock partMPB, Camera camera) {
|
||||
if (_projectionEnabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user