Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
1.1.0:material-behaviour [2023/08/07 14:49] – [TGorillaMaterialWindBehaviour] admin1.1.0:material-behaviour [2023/08/19 10:28] (current) – [Attach / Detach] admin
Line 41: Line 41:
 |procedure **AttachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour);|Attaches a specific material behaviour to the default material source.| |procedure **AttachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour);|Attaches a specific material behaviour to the default material source.|
 |procedure **DetachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour);|Detaches a specific material behaviour from the default material source.| |procedure **DetachMaterialBehaviour**(ABehaviour : TGorillaMaterialBehaviour);|Detaches a specific material behaviour from the default material source.|
 +|procedure **ClearMaterialsBehaviours**();|Detaches all attached material behaviours from the specific default material source.|
  
 ===== 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.
 +
 +{{:1.1.0:gorilla3d-wind.jpg|}}
  
 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.
 +
 +{{:1.1.0:gorilla3d-wobble.jpg|}}
  
 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.
 +
 +{{:1.1.0:gorilla3d-coloradjust.jpg|}}
  
 ^Property^Description^ ^Property^Description^