This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gamedev:textureproperties:refraction_distort [2012/12/01 18:15] – dragonlord | gamedev:textureproperties:refraction_distort [2019/05/24 23:43] (current) – ↷ Links adapted because of a move operation dragonlord | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{tag> | ||
<WRAP youarehere> | <WRAP youarehere> | ||
- | [[: | + | [[: |
</ | </ | ||
- | <WRAP boxheader> | + | ====== |
- | ====== | + | |
- | </ | + | Defines the distortion behind transparent objects. |
- | <WRAP boxcontent> | + | |
- | |Texture Property Name|refraction.distort| | + | |
|Excepted Data Source|2 component image| | |Excepted Data Source|2 component image| | ||
|Data Range|0 to 1 for all image components| | |Data Range|0 to 1 for all image components| | ||
|Default Value|(0.5, 0.5)| | |Default Value|(0.5, 0.5)| | ||
- | |Graphic | + | |Affected Modules|Graphic| |
- | |Physics Module|No effect| | + | |Linked Properties|[[gamedev: |
- | |Audio Module|No effect| | + | |
- | </ | + | ====== Description ====== |
- | ====== Graphic Module ====== | ||
The **refraction.distort** texture property defines the distortion to use for objects rendered behind a transparent object. Distortion effects are typically screen space effects simulating refraction distortion happening behind transparent materials with curvy and bumpy surface. Using full fresnel refraction calculations is usually not feasible in real time. This effect can though still be faked in screen space an image defining at what offset to use an image from behind the object. This technique has its limitations but it produces reasonable results fast. | The **refraction.distort** texture property defines the distortion to use for objects rendered behind a transparent object. Distortion effects are typically screen space effects simulating refraction distortion happening behind transparent materials with curvy and bumpy surface. Using full fresnel refraction calculations is usually not feasible in real time. This effect can though still be faked in screen space an image defining at what offset to use an image from behind the object. This technique has its limitations but it produces reasonable results fast. | ||
Line 22: | Line 21: | ||
The default value for this texture property is (0.5, 0.5). | The default value for this texture property is (0.5, 0.5). | ||
- | |||
- | ====== Physics Module ====== | ||
- | This texture property does not effect Physics Modules. | ||
- | |||
- | ====== Audio Module ====== | ||
- | This texture property does not effect Audio Modules. | ||
====== Examples ====== | ====== Examples ====== | ||
- | ( TODO: example | + | |
+ | <WRAP center 100%> | ||
+ | <WRAP center box 500px> | ||
+ | {{ :gamedev: | ||
+ | <WRAP centeralign> | ||
+ | </ | ||
+ | </ |