Render Controllers¶
文档版本:1.21.50.25
A collection of render controllers to apply.
架构¶
render_controllers:
{
string "format_version" : opt
object "render_controllers" : opt
{
object "^controller\.render\.[a-z\.]+" : opt
{
object "arrays" : opt
{
object "geometries" : opt
{
array "<any object property>" : opt
{
string "<any array element>" : opt
}
}
object "materials" : opt
{
array "<any object property>" : opt
{
string "<any array element>" : opt
}
}
object "textures" : opt
{
array "<any object property>" : opt
{
string "<any array element>" : opt
}
}
}
object "color" : opt
{
number "r" : opt
string "r" : opt
"g" : opt
"b" : opt
"a" : opt
}
boolean "filter_lighting" : opt
0 "geometry"
boolean "ignore_lighting" : opt
object "is_hurt_color" : opt
{
"r" : opt
"g" : opt
"b" : opt
"a" : opt
}
0 "light_color_multiplier"
array "materials" : opt
{
object "<any array element>" : opt
{
string "<any object property>" : opt
}
}
object "on_fire_color" : opt
{
"r" : opt
"g" : opt
"b" : opt
"a" : opt
}
object "overlay_color" : opt
{
"r" : opt
"g" : opt
"b" : opt
"a" : opt
}
array "part_visibility" : opt
{
object "<any array element>" : opt
{
string "<any object property>" : opt
boolean "<any object property>" : opt
number "<any object property>" : opt
}
}
boolean "rebuild_animation_matrices" : opt
array "textures" : opt
{
0 "<any array element>"
}
object "uv_anim" : opt
{
array "offset" : opt
{
0 "<any array element>"
}
array "scale" : opt
{
0 "<any array element>"
}
}
}
}
}
format_version
:string
render_controllers
:object- The collection of render controllers, each property is the identifier of a render controller.
render_controllers
^controller\.render\.[a-z\.]+
:object- A single render_controller.
^controller\.render\.[a-z\.]+
arrays
:object- A collection of definition of arrays.
arrays
geometries
:object- A collection of Geometry array.
geometries
<any object property>
:array- A geometry array definition.
<any object property>
<any array element>
:string- A geometry item, must be defined in the entity.
materials
:object- A collection of materials array.
materials
<any object property>
:array- A material array definition.
<any object property>
<any array element>
:string- A material item, must be defined in the entity.
textures
:object- A collection of texture array.
textures
<any object property>
:array- Textures.
<any object property>
<any array element>
:string- An texture item.
color
:object- The color to apply.
color
r
:number- A color definition as number, between 0 and 1.
r
:string- A color definition in molang, between 0 and 1.
g
- The value of green, between 0 and 1.
b
- The value of blue, between 0 and 1.
a
- The value of alpha, between 0 and 1.
filter_lighting
:boolean- Whenever or not to apply enviroment lighting to this object.
geometry
:0- The model data to use.
ignore_lighting
:boolean- Whenever or not to apply enviroment lighting to this object.
is_hurt_color
:object- The color to overlay on the entity when hurt.
is_hurt_color
r
- The value of red, between 0 and 1.
g
- The value of green, between 0 and 1.
b
- The value of blue, between 0 and 1.
a
- The value of alpha, between 0 and 1.
light_color_multiplier
:0- The amount of light that blends into what is being rendered, lower values gives darker rendering, (1 = 100%).
materials
:array- The specification where to apply materials to.
materials
<any array element>
:object- The definitions of what material to apply to what set of bones, can be done through specific names, or patterns using * as a wildcard.
<any array element>
<any object property>
:string- The material to apply, or patterns using * as a wildcard.
on_fire_color
:object- The color that will be overlayed when the object is on fire.
on_fire_color
r
- The value of red, must result in a float between 0 and 1.
g
- The value of green, must result in a float between 0 and 1.
b
- The value of blue, must result in a float between 0 and 1.
a
- The value of alpha, must result in a float between 0 and 1.
overlay_color
:object- The color to put over the object.
overlay_color
r
- The value of red, between 0 and 1.
g
- The value of green, between 0 and 1.
b
- The value of blue, between 0 and 1.
a
- The value of alpha, between 0 and 1.
part_visibility
:array- Determines what part of the object to show or hide.
part_visibility
<any array element>
:object- The object that describe different bone visibility.
<any array element>
<any object property>
:string
<any object property>
:boolean
<any object property>
:number
rebuild_animation_matrices
:boolean- Whenever or not to rebuild the animation matrices.
textures
:array- The texture to apply, multiple texture can be used as to create an overlay effect, a specific material is required though.
textures
<any array element>
:0- The texture definition to apply.
uv_anim
:object- The UV animation to apply to the render texture.
uv_anim
offset
:array- The offset to apply the UV, this will cause the texture on the object to shift by said amount, can be molang. The value for how much to offset is usually specified between 0 and 1
offset
<any array element>
:0- The offset to apply on the texture, can be molang.
scale
:array- The scale to apply to the texture, this will cause texture to seem to grow and shrink if done per frame.
scale
<any array element>
:0- The scale to apply on the texture, can be molang.