forked from synapticsim/BehaveStd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmissive.xml
More file actions
33 lines (30 loc) · 1.04 KB
/
Emissive.xml
File metadata and controls
33 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<ModelBehaviors>
<Template Name="Beh_Emissive">
<Parameters Type="Default">
<!-- The name of the component to create. -->
<Name/>
<!-- The GLTF node of the object to control. If it is not given, `Name` will be used. -->
<Node/>
<!-- RPN code that will determine the strength of the emissive glow. -->
<Value/>
</Parameters>
<Parameters Type="Override">
<Condition Valid="Node">
<False>
<Node>#Name#</Node>
</False>
</Condition>
</Parameters>
<Component ID="#Name#" Node="#Node#">
<Material>
<EmissiveFactor>
<Parameter>
<Code>#Value#</Code>
</Parameter>
<OverrideBaseEmissive>True</OverrideBaseEmissive>
</EmissiveFactor>
</Material>
</Component>
</Template>
</ModelBehaviors>