zCDecal¶
Quick Infos
Type: Object
Format Name: ZenGin Archive
File Extension: .ZEN
Class Name: zCDecal
Version Identifiers:
— Gothic I: 0
— Gothic II: 64513
ZenKit Class: VisualDecal
Sources:
— spacerhilfedatei.sph
— gothic-library.ru
Decals are used to insert flat 2-dimensional textures into the game world. It is used for things like spider webs and waterfall splash effects which don't need to be 3-dimensional objects.
- zCVisual
- zCDecal
- name = ""
- decalDim = 25 25
- decalOffset = 0 0
- decal2Sided = FALSE
- decalAlphaFunc = NONE
- decalTexAniFPS = 0.0
- zCVisual
- zCDecal
- name = ""
- decalDim = 25 25
- decalOffset = 0 0
- decal2Sided = FALSE
- decalAlphaFunc = NONE
- decalTexAniFPS = 0.0
- decalAlphaWeight = 255
- ignoreDayLight = FALSE
- zCVisual
- zCDecal
- name = ""
- decalDim = 25 25
- decalOffset = 0 0
- decal2Sided = FALSE
- decalAlphaFunc = NONE
- decalTexAniFPS = 0.0
- zCVisual
- zCDecal
- name = ""
- decalDim = 25 25
- decalOffset = 0 0
- decal2Sided = FALSE
- decalAlphaFunc = NONE
- decalTexAniFPS = 0.0
- decalAlphaWeight = 255
- ignoreDayLight = FALSE
Properties¶
name
¶
- The name of the decal texture. If the decal is part of a VObject, this field is the same as zCVob.visual.
decalDim
¶
- The size of the decal texture as a 2-dimensional vector. The first element is the width, and the second is the height.
decalOffset
¶
- The offset of the decal texture relative to the parent VObject's position as a 2-dimensional vector.
decal2Sided
¶
- Enables or disables backface culling for the texture.
TRUE
— Show the texture on both sides.FALSE
— Show the texture on the front side only.
decalAlphaFunc
¶
-
The function to use for calculating the texture's alpha channel.
MAT_DEFAULT
— Use the texture's alpha channel as-is.NONE
— Treat the alpha channel as an "on or off" value.BLEND
— Mixing.ADD
— Addition.SUB
— Subtraction.MUL
— Multiplication.MUL2
— Multiplication.
decalTexAniFPS
¶
- Determines the number of frames per minute to use for animated textures.
decalAlphaWeight
¶
-
Determines the transparency of the texture between
0
and255
. Only relevant ifdecalAlphaFunc
is set to a value other thanNONE
. A value of255
indicates that the texture is fully visible and a value of0
indicates that the decal is invisible.Warning
This property is only available in Gothic II.
ignoreDayLight
¶
-
Determines whether to take the day lighting into account when calculation the brightness of this decal.
TRUE
— To take into account daylight.FALSE
— Do not take into account daylight.Warning
This property is only available in Gothic II.