Skip to content

Instantly share code, notes, and snippets.

@boformer
Last active August 15, 2022 20:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save boformer/6cb54732245b14e214b26fe0b7d1530b to your computer and use it in GitHub Desktop.
Save boformer/6cb54732245b14e214b26fe0b7d1530b to your computer and use it in GitHub Desktop.
CustomEffectLoader Definition File
<?xml version="1.0" encoding="utf-8"?>
<EffectsDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Effects>
<LightEffect
name="boformer.MY CUSTOM EFFECT"
type="Spot"
intensity="6.2"
range="500"
spotAngle="10"
spotLeaking="0.5"
batchedLight="true"
offMin="0.4"
offMax="0.7">
<VariationColors>
<Color r="255" g="0" b="0" A="255" />
<Color r="0" g="255" b="0" A="255" />
<Color r="0" g="0" b="255" A="255" />
</VariationColors>
</LightEffect>
<LightEffect
name="boformer.MY CUSTOM EFFECT 2"
type="Spot"
intensity="6.2"
range="500"
spotAngle="10"
spotLeaking="0.5"
fadeStartDistance="300"
fadeEndDistance="500"
offMin="1000"
offMax="1001"
blinkType="Blink_050_050"
rotationSpeed="10"
rotationAxisX="0.0"
rotationAxisY="0.2"
rotationAxisZ="1.0">
<VariationColors>
<Color r="255" g="240" b="255" A="255" />
</VariationColors>
</LightEffect>
</Effects>
</EffectsDefinition>
<!--
Supported Light Types:
* Spot
* Directional
* Point
* Area
Supported Blink types:
* None
* Blink_050_050
* MildFade_0125_0125
* MediumFade_500_500
* StrongBlaze_0125_0125
* StrongFade_250_250
* Blink_025_025
offMin and offMax determine between which daylight levels the lights are turned off
(night-only: 0.4/0.7, always on: 1000/1001)
Enable "batchLight" to make the light visible from any distance.
Otherwise use fadeStartDistance and fadeEndDistance to control the distance fading.
Rotation only works with non-batched spot lights!
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment