User Tools

Site Tools


gamedev:textureproperties:color_gamma

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
gamedev:textureproperties:color_gamma [2019/05/09 08:26] – removed dragonlordgamedev:textureproperties:color_gamma [2019/05/09 08:26] – created dragonlord
Line 1: Line 1:
 +{{tag>graphic skin texture color}}
 +<WRAP youarehere>
 +[[:start|Start Page]] >> [[gamedev:main|Game Development with the Drag[en]gine]] >> [[gamedev:skinproperties|Skin Texture Properties]] >> [[gamedev:texturepropertylist|Texture Property Database]] >> **color.gamma**
 +</WRAP>
  
 +====== Skin Texture Property: color.gamma ======
 +
 +Defines the gamma correction for the color and color_alpha texture property.
 +
 +|Excepted Data Source|1 component value|
 +|Data Range|larger than 0|
 +|Default Value|2.2|
 +|Affected Modules|Graphic|
 +|Linked Properties|[[gamedev:textureproperties:color|color]], [[gamedev:textureproperties:color_alpha|color_alpha]]|
 +
 +====== Description ======
 +
 +The **color.gamma** texture property is linked to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. it defines the gamma correction applied to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property. Monitors using the sRGB color space have roughly a gamma of 2.2 . Images autored on monitors thus usually have also an sRGB color space and thus also a gamma of 2.2 . To allow Graphic Modules to render in linear color space the gamma has to be known that the images assigned to the **[[gamedev:textureproperties:color|color]]** and **[[gamedev:textureproperties:color_alpha|color_alpha]]** texture property use. In most cases you do not have to touch this texture property. If you use though linear space images or high definition range images then you have to set the gamma to 1 to avoid gamma correction. Other situations might exist if an image has a different gamma correction to better use the 8-bit resolution. This might be of use for very bright or dark images.
 +
 +The value is typically a 1 component value larger than 0.
 +
 +The default value for this texture property is 2.2 which is roughly sRGB gamma correction.
 +
 +====== Examples ======
 +
 +( TODO: example image )
gamedev/textureproperties/color_gamma.txt · Last modified: 2019/05/24 23:43 by dragonlord