Decals (Effects) - emd4600/SporeModder-FX GitHub Wiki

The decal component is used to paint a texture into the planet terrian. Therefore, this component can only be used within a planet.

In the adventure editor, they are often called "roads" or "plazas".

Keyword: decal

Attributes

color <colorRGB...>

The color applied to the decal, a tint applied to the texture; the default color is white. This field is animatable, so multiple colors can be specified to change the color over the lifetime of the decal.


alpha <float...> -vary <float>

The opacity of the decal, with 1.0 being opaque and 0.0 transparent. When a decal had transparency, it's texture is blended with the terrain below. This field is animatable, so multiple values can be specified to change the opacity over the lifetime of the decal.

Furthermore, the -vary option can be used to give some variety to the alpha values.


size <float...> -vary <float>

The scale of the decal, with the default value being 1.0. This field is animatable, so multiple values can be specified to change the size over the lifetime of the decal.

The -vary can be used to give some variety to the size values.


rotate <float...> -vary <float>

The rotation applied to the decal, with 0 being no rotation and 1.0 being a complete rotation (so equivalent to 0). This field is animatable, so multiple values can be specified to change the rotation over the lifetime of the decal.

The -vary can be used to give some variety to the rotation values.


life <float>

The lifetime of the decal, in seconds. Unlike particles, decals do not disappear when their lifetime is over; therefore, this is just used to calculate animated attributes. When the lifetime is over, it just starts again.


texture <resourceID> -repeat <float> -offset <vector2>

Selects the texture used in the decal. The usage of -repeat and -offset is untested, but the name seems intuitive. Apart from those options, all other options from texture slots are also supported.


mapEmitColor <resourceID>

Selects a map resource, of unknown usage.


field_8 <int>

Unknown usage.


field_C <int>

Unknown usage. The value is a 8-bit integer number.


field_D <int>

Unknown usage. The value is a 8-bit integer number.


Examples

decal decal-2
	color (1, 1, 1)
	alpha 1 -vary 1
	size 1 -vary 0.2
	rotate 1 0
	life 10
	texture 0x1696D20B -repeat 1
end
⚠️ **GitHub.com Fallback** ⚠️