Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
1.1.0:material-behaviour [2023/08/07 14:49] – [TGorillaMaterialWindBehaviour] admin | 1.1.0:material-behaviour [2023/08/19 10:28] (current) – [Attach / Detach] admin | ||
---|---|---|---|
Line 41: | Line 41: | ||
|procedure **AttachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour); | |procedure **AttachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour); | ||
|procedure **DetachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour); | |procedure **DetachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour); | ||
+ | |procedure **ClearMaterialsBehaviours**(); | ||
===== TGorillaMaterialBehaviour | ===== TGorillaMaterialBehaviour | ||
Line 109: | Line 110: | ||
The wind material behaviour is a global component to be applied to default material sources, which should be affected by waving wind functionality. | The wind material behaviour is a global component to be applied to default material sources, which should be affected by waving wind functionality. | ||
+ | |||
+ | {{: | ||
Our wind behaviour is based on a wind channel, which is defined by a source point and a direction from there. The width, height and distance properties | Our wind behaviour is based on a wind channel, which is defined by a source point and a direction from there. The width, height and distance properties | ||
Line 128: | Line 131: | ||
The wobble material behaviour enables additional code in the vertex shader of each attached default material source. | The wobble material behaviour enables additional code in the vertex shader of each attached default material source. | ||
+ | |||
+ | {{: | ||
It modifies the vertex position randomly by a noise function to simulate wobbling. This effect might be useful for waving or droplet simulation. | It modifies the vertex position randomly by a noise function to simulate wobbling. This effect might be useful for waving or droplet simulation. | ||
Line 141: | Line 146: | ||
For the rim lighting behaviour we've extracted the shader functionality from the TGorillaRimLightMaterialSource component to make it accessable to all default materials. | For the rim lighting behaviour we've extracted the shader functionality from the TGorillaRimLightMaterialSource component to make it accessable to all default materials. | ||
- | {{:1.0.0:rimlighting.jpg|}} | + | {{:1.1.0:gorilla3d-rimlight.jpg|}} |
A rim light is placed behind a subject that exposes the outline or rim of the subject with light. This lighting highlights the contours of a subject and creates a dramatic and mysterious effect. | A rim light is placed behind a subject that exposes the outline or rim of the subject with light. This lighting highlights the contours of a subject and creates a dramatic and mysterious effect. | ||
Line 171: | Line 176: | ||
Is a very simple material behaviour to adjust output colors of attached material sources by controlling brightness, contrast, gamma, hue, saturation and luminosity. | Is a very simple material behaviour to adjust output colors of attached material sources by controlling brightness, contrast, gamma, hue, saturation and luminosity. | ||
+ | |||
+ | {{: | ||
^Property^Description^ | ^Property^Description^ |