m
Move page script moved page API Texture SetDesaturated to WoW:API Texture SetDesaturated without leaving a redirect
No edit summary |
m (Move page script moved page API Texture SetDesaturated to WoW:API Texture SetDesaturated without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{widgetmethod}} | |||
Sets a texture to be desaturated, to make it greyscale. | Sets a texture to be desaturated, to make it greyscale. | ||
| Line 14: | Line 16: | ||
; shaderSupported | ; shaderSupported | ||
returns nil if desaturation isn't supported by the user's graphics card (ie. old GeForce4 cards don't). One can use texture:SetVertexColor instead in this case. See the example below for the way Blizzard handles this. | |||
---- | ---- | ||
| Line 31: | Line 33: | ||
end | end | ||
end | end | ||