Difference between revisions of "EffectShader"

746 bytes added ,  22:25, 17 August 2013
imported>Danielleonyett
imported>Danielleonyett
Line 25: Line 25:


''Source Alpha''
''Source Alpha''
:: RGB components of source pixel multiplied by alpha (Multiplies all channels with the source alpha)
:: RGB components of source pixel multiplied by alpha. (Multiplies all channels with the source alpha)


''Source Inverted Alpha''
''Source Inverted Alpha''
:: RGB components of source pixel multiplied by 1 - alpha (Multiplies all channels with one minus the source alpha)
:: RGB components of source pixel multiplied by 1 - alpha. (Multiplies all channels with one minus the source alpha)


''Source Color''
''Source Color''
:: Color of source pixel (Multiplies each component with the respective component in the source color)
:: Color of source pixel. (Multiplies each component with the respective component in the source color)


''Source Inverse Color''
''Source Inverse Color''
:: Color of source pixel subtracted per component from white (Multiplies each component with one minus the respective component in the source color)
:: Color of source pixel subtracted per component from white. (Multiplies each component with one minus the respective component in the source color)


''Dest Alpha''
''Dest Alpha''
:: RGB components of destination pixel multiplied by alpha (Multiplies all channels with the destination alpha)
:: RGB components of destination pixel multiplied by alpha. (Multiplies all channels with the destination alpha)


''Dest Inverted Alpha''
''Dest Inverted Alpha''
:: RGB components of destination pixel multiplied by 1 - alpha (Multiplies all channels with one minus the destination alpha)
:: RGB components of destination pixel multiplied by 1 - alpha. (Multiplies all channels with one minus the destination alpha)


''Dest Color''
''Dest Color''
:: Color of destination pixel (Multiplies each component with the respective component in the destination color)
:: Color of destination pixel. (Multiplies each component with the respective component in the destination color)


''Dest Inverse Color''
''Dest Inverse Color''
:: Color of destination pixel subtracted per component from white (Multiplies each component with one minus the respective component in the destination color)
:: Color of destination pixel subtracted per component from white. (Multiplies each component with one minus the respective component in the destination color)


''Source Alpha SAT''
''Source Alpha SAT''
Line 87: Line 87:


Defaults to Equal To. If changed to Greater Than or Greater Than or Equal To, the membrane shader will be displayed on top of other geometry and will be visible through walls (unconfirmed).
Defaults to Equal To. If changed to Greater Than or Greater Than or Equal To, the membrane shader will be displayed on top of other geometry and will be visible through walls (unconfirmed).
'( The Z-Buffer (also called Depth Buffer) is used to determine object occlusion during Rasterization. During rendering of a triangle, the Z-value of a given pixel is compared to the value stored in the Z-Buffer. Based on the Z-testing function, the triangle either is allowed to overdraw the pixel or not. The default behavior is to accept pixel that have a Z-value that is smaller or the same as the value in the Z-Buffer, making objects closer to the camera occlude objects which are farther away. While it may seem weird at first to ever use something that is different from the default (and in the majority of cases this is the best option), using different comparison functions can be used to create interesting rendering effects.)


''Equal To'' - (A pixel is drawn if its depth value is exactly equal to the corresponding value stored in the Z-Buffer)
''Equal To'' - (A pixel is drawn if its depth value is exactly equal to the corresponding value stored in the Z-Buffer)