-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from vrchat-community/1.4.0
1.4.0 - Bakery types & fixed hanging Bakery issue
- Loading branch information
Showing
22 changed files
with
319 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_DirectLight.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#if UNITY_EDITOR && BAKERY_INCLUDED | ||
using UnityEditor; | ||
using UnityEngine; | ||
using EasyQuestSwitch.Fields; | ||
|
||
namespace EasyQuestSwitch.Types | ||
{ | ||
[AddComponentMenu("")] | ||
public class Type_Bakery_DirectLight : Type_Behaviour | ||
{ | ||
[System.NonSerialized] | ||
private BakeryDirectLight type; | ||
|
||
public SharedColor color = new SharedColor(); | ||
public SharedFloat intensity = new SharedFloat(); | ||
public SharedFloat shadowSpread = new SharedFloat(); | ||
public SharedInt shadowSamples = new SharedInt(); | ||
public SharedFloat indirectIntensity = new SharedFloat(); | ||
public SharedBool antiAlias = new SharedBool(); | ||
|
||
|
||
public override void Setup(Object type) | ||
{ | ||
base.Setup(type); | ||
BakeryDirectLight component = (BakeryDirectLight)type; | ||
color.Setup(component.color); | ||
intensity.Setup(component.intensity); | ||
shadowSpread.Setup(component.shadowSpread); | ||
shadowSamples.Setup(component.samples); | ||
indirectIntensity.Setup(component.indirectIntensity); | ||
antiAlias.Setup(component.supersample); | ||
|
||
} | ||
|
||
public override void Process(Object type, BuildTarget buildTarget) | ||
{ | ||
base.Process(type, buildTarget); | ||
BakeryDirectLight component = (BakeryDirectLight)type; | ||
component.color = color.Get(buildTarget); | ||
component.intensity = intensity.Get(buildTarget); | ||
component.shadowSpread = shadowSpread.Get(buildTarget); | ||
component.samples = shadowSamples.Get(buildTarget); | ||
component.indirectIntensity = indirectIntensity.Get(buildTarget); | ||
component.supersample = antiAlias.Get(buildTarget); | ||
} | ||
} | ||
} | ||
#endif |
11 changes: 11 additions & 0 deletions
11
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_DirectLight.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_LightMesh.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#if UNITY_EDITOR && BAKERY_INCLUDED | ||
using UnityEditor; | ||
using UnityEngine; | ||
using EasyQuestSwitch.Fields; | ||
|
||
namespace EasyQuestSwitch.Types | ||
{ | ||
[AddComponentMenu("")] | ||
public class Type_Bakery_LightMesh : Type_Behaviour | ||
{ | ||
[System.NonSerialized] | ||
private BakeryLightMesh type; | ||
|
||
public SharedFloat intensity = new SharedFloat(); | ||
public SharedColor color = new SharedColor(); | ||
public SharedInt samplesNear = new SharedInt(); | ||
public SharedInt samplesFar = new SharedInt(); | ||
public SharedBool selfShadow = new SharedBool(); | ||
public SharedFloat indirectIntensity = new SharedFloat(); | ||
|
||
public override void Setup(Object type) | ||
{ | ||
base.Setup(type); | ||
BakeryLightMesh component = (BakeryLightMesh)type; | ||
intensity.Setup(component.intensity); | ||
color.Setup(component.color); | ||
samplesNear.Setup(component.samples); | ||
samplesFar.Setup(component.samples2); | ||
selfShadow.Setup(component.selfShadow); | ||
indirectIntensity.Setup(component.indirectIntensity); | ||
} | ||
|
||
public override void Process(Object type, BuildTarget buildTarget) | ||
{ | ||
base.Process(type, buildTarget); | ||
BakeryLightMesh component = (BakeryLightMesh)type; | ||
component.intensity = intensity.Get(buildTarget); | ||
component.color = color.Get(buildTarget); | ||
component.samples = samplesNear.Get(buildTarget); | ||
component.samples2 = samplesFar.Get(buildTarget); | ||
component.selfShadow = selfShadow.Get(buildTarget); | ||
component.indirectIntensity = indirectIntensity.Get(buildTarget); | ||
} | ||
} | ||
} | ||
#endif |
11 changes: 11 additions & 0 deletions
11
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_LightMesh.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
54 changes: 54 additions & 0 deletions
54
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_PointLight.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#if UNITY_EDITOR && BAKERY_INCLUDED | ||
using UnityEditor; | ||
using UnityEngine; | ||
using EasyQuestSwitch.Fields; | ||
|
||
namespace EasyQuestSwitch.Types | ||
{ | ||
[AddComponentMenu("")] | ||
public class Type_Bakery_PointLight : Type_Behaviour | ||
{ | ||
[System.NonSerialized] | ||
private BakeryPointLight type; | ||
|
||
public SharedColor color = new SharedColor(); | ||
public SharedFloat intensity = new SharedFloat(); | ||
public SharedFloat shadowSpread = new SharedFloat(); | ||
public SharedBool physicalFalloff = new SharedBool(); | ||
public SharedFloat range = new SharedFloat(); | ||
public SharedInt samples = new SharedInt(); | ||
public SharedBool legacySampling = new SharedBool(); | ||
public SharedFloat indirectIntensity = new SharedFloat(); | ||
|
||
|
||
public override void Setup(Object type) | ||
{ | ||
base.Setup(type); | ||
BakeryPointLight component = (BakeryPointLight)type; | ||
color.Setup(component.color); | ||
intensity.Setup(component.intensity); | ||
shadowSpread.Setup(component.shadowSpread); | ||
physicalFalloff.Setup(component.realisticFalloff); | ||
range.Setup(component.cutoff); | ||
samples.Setup(component.samples); | ||
legacySampling.Setup(component.legacySampling); | ||
indirectIntensity.Setup(component.indirectIntensity); | ||
|
||
} | ||
|
||
public override void Process(Object type, BuildTarget buildTarget) | ||
{ | ||
base.Process(type, buildTarget); | ||
BakeryPointLight component = (BakeryPointLight)type; | ||
component.color = color.Get(buildTarget); | ||
component.intensity = intensity.Get(buildTarget); | ||
component.shadowSpread = shadowSpread.Get(buildTarget); | ||
component.realisticFalloff = physicalFalloff.Get(buildTarget); | ||
component.cutoff = range.Get(buildTarget); | ||
component.samples = samples.Get(buildTarget); | ||
component.legacySampling = legacySampling.Get(buildTarget); | ||
component.indirectIntensity = indirectIntensity.Get(buildTarget); | ||
} | ||
} | ||
} | ||
#endif |
11 changes: 11 additions & 0 deletions
11
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_PointLight.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
vrchat.jordo.easyquestswitch/Runtime/EQS_Types/Bakery/Type_Bakery_SkyLight.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#if UNITY_EDITOR && BAKERY_INCLUDED | ||
using UnityEditor; | ||
using UnityEngine; | ||
using EasyQuestSwitch.Fields; | ||
|
||
namespace EasyQuestSwitch.Types | ||
{ | ||
[AddComponentMenu("")] | ||
public class Type_Bakery_SkyLight : Type_Behaviour | ||
{ | ||
[System.NonSerialized] | ||
private BakerySkyLight type; | ||
|
||
public SharedColor color = new SharedColor(); | ||
public SharedFloat intensity = new SharedFloat(); | ||
public SharedInt samples = new SharedInt(); | ||
public SharedBool hemispherical = new SharedBool(); | ||
|
||
|
||
public override void Setup(Object type) | ||
{ | ||
base.Setup(type); | ||
BakerySkyLight component = (BakerySkyLight)type; | ||
color.Setup(component.color); | ||
intensity.Setup(component.intensity); | ||
samples.Setup(component.samples); | ||
hemispherical.Setup(component.hemispherical); | ||
} | ||
|
||
public override void Process(Object type, BuildTarget buildTarget) | ||
{ | ||
base.Process(type, buildTarget); | ||
BakerySkyLight component = (BakerySkyLight)type; | ||
component.color = color.Get(buildTarget); | ||
component.intensity = intensity.Get(buildTarget); | ||
component.samples = samples.Get(buildTarget); | ||
component.hemispherical = hemispherical.Get(buildTarget); | ||
} | ||
} | ||
} | ||
#endif |
Oops, something went wrong.