-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
Added Bakery Lightmapper light types
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "vrchat.jordo.easyquestswitch", | ||
"rootNamespace": "", | ||
"references": [ | ||
"GUID:a1653399f63795746b1857281d1e400d" | ||
], | ||
"includePlatforms": [], | ||
"excludePlatforms": [], | ||
"allowUnsafeCode": false, | ||
"overrideReferences": false, | ||
"precompiledReferences": [], | ||
"autoReferenced": true, | ||
"defineConstraints": [], | ||
"versionDefines": [], | ||
"noEngineReferences": false | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.