Code Snipped: Contrast Shader

This simple post effect shows how to change the constrast of an image.
We just recover the texture color and apply a simple approximated Contrast equation.

This approach is very simple and give good results

sampler baseSampler : register(s0);

float Contrast;

float4 PixelShader1( float2 Tex : TEXCOORD ) : COLOR0
float3 Color =  tex2D(baseSampler, Tex);
Color = Color - Contrast * (Color - 1.0f) * Color *(Color - 0.5f);
return float4(Color,0);

technique contrast
    pass p0
        PixelShader = compile ps_2_0 PixelShader1();


  1. #1 by beton imprime on 16 de janeiro de 2017 - 11:01 am

    I loved as much as you will receive carried out right here. The sketch is attractive, your authored material stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  2. #2 by on 16 de janeiro de 2017 - 11:06 am

    Home run! Great slugging with that answer!

  3. #3 by cheapest auto insurance in Champaign IL on 16 de janeiro de 2017 - 11:26 am

    Didn’t know the forum rules allowed such brilliant posts.

  4. #4 by on 16 de janeiro de 2017 - 11:52 am

    courtney February 24, 2011The best part about these is that all the people still have on old-fashioned clothing aha like we can invent flying cars but not new attire!

  5. #5 by cheapest auto insurance in Hallandale FL on 16 de janeiro de 2017 - 12:07 pm

    Thank you so much for this article, it saved me time!

  6. #6 by auto owners insurance Garland TX on 16 de janeiro de 2017 - 12:14 pm

    btw, that is not necessarily correct about when the alcohol consumption could have started and the emergence of this liver condition.Yes, I have known a young person who ended up with cirrohsis of the liver, and it could have been from drinking but there could have been other drug related causes for his condition.

  7. #7 by car insurance with no license in Kearny NJ on 16 de janeiro de 2017 - 1:07 pm

    I am always telling my daughter, my husband, myself (actually- anyone who will listen that the fear of the unknown is actually the scariest thing of all. I know you are scared now. I would be. Hugs hugs hugs! I LOVE your haircut!!!!!!! Super cute!

  8. #8 by on 16 de janeiro de 2017 - 1:13 pm

    “You have to start by realizing that, whatever other pressures and influences and games-playing by ANC politicians that we discuss, Israel’s policies and its human rights record towards occupied Palestinians are simply unacceptable to any member of the ANC and the South African Left – and maybe to most enlightened people anywhere, including Israel.

  9. #9 by direct auto insurance Laurel MD on 16 de janeiro de 2017 - 1:21 pm

    What a gorgeous little girl!Hi Brenna- Just stopping by to check out everyone’s blogs. Yours is lovely and I’m looking forward to collaborating with you on a little etsy love!

  10. #10 by cheap car insurance Starkville MS on 16 de janeiro de 2017 - 1:33 pm

    An intelligent answer – no BS – which makes a pleasant change

  11. #11 by yeezy boost 350 v2 buy on 16 de janeiro de 2017 - 3:23 pm

  12. #12 by on 16 de janeiro de 2017 - 4:38 pm

    This article is a home run, pure and simple!

  13. #13 by geico insurance ny on 16 de janeiro de 2017 - 5:06 pm

    I am often to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your site and keep checking for new information.

  14. #14 by geico home insurance colorado on 16 de janeiro de 2017 - 5:12 pm

    Hey there! I know this is somewhat off topic but I was wondering if you knew where I could locate a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having difficulty finding one? Thanks a lot!

  15. #15 by Custom Car Interior on 16 de janeiro de 2017 - 5:12 pm

    I have two computers: We call 1 the “good” computer — it has two monitors. The other can be my “junk” computer with one display where I actually download a lot of stuff to this… If I wished to continue using both computers but only with the dual monitors, what would I have to buy? Is there some sort of splitter I can buy that will enable me to switch between every CPU? Exactly where can I buy one if it does in fact can be found? Will I be able to make use of one mouse and keyboard?.

  16. #16 by on 16 de janeiro de 2017 - 6:07 pm

    V: "You expect too much. Most statists cannot imagine a world where individuals are free and the government is limited."V: "How can you advance a statist view AND use logic or reason?"You're correct, of course, I'm expecting too much. But, it's so bad, I can't be sure he's even advancing a statist view. It's just pure nonsense.

  17. #18 by selbständig sofortkredit on 16 de janeiro de 2017 - 7:31 pm

    Marcelo disse:Alexandre Obrigaod por responde amigo !Como faço para que esse codigo não dê erro 404 no Mozila ?como faço para alterar isso ? eu só vejo as opções de url no main.js e no jquery.jqswfupload.jsProvavelmente a opção upload_url do swfupload não está correta. Não se esqueça de tornar o link absoluto ou relativo ao caminho do plugin.

  18. #19 by kredit mobil wagon on 16 de janeiro de 2017 - 7:31 pm

    Dans les standards de la société d’aujourd’hui ou généraux..le concept d’avoir de la Classe n,est pas qu’aux qualités intérieures: C’est sur l’apparence (styles, vêtements, statuts social, démarche & façon de s’exprimer).Remarque que lorsqu’une femme m’intéresse, c’est sur bien d’autres facteurs qui me font aller vers même si ces derniers nommées sont intéressants en soit. Je regarde en 1er si on a les mêmes objectifs de si elle m’allume

  19. #20 by insurance company financial RATINGs on 16 de janeiro de 2017 - 7:32 pm

    I conceive you have observed some very interesting details, thankyou for the post.

  20. #21 by life insurance company RATINGs am best on 16 de janeiro de 2017 - 7:41 pm

    I will immediately take hold of your rss feed as I can not to find your e-mail subscription hyperlink or e-newsletter service. Do you’ve any? Please let me realize in order that I may just subscribe. Thanks.

  21. #22 by corejro on 16 de janeiro de 2017 - 7:58 pm

    白いので色違いで使い間違いも少なそうなのでこれに決定。 家に帰り、色々試し、最初はとに角、日本語表示にしなくてはと、やってみたら、キーボードはMicrosoft IMEを使えるが、機械その物のシステムは英語のままで、これでは今もっている 英語版 WindowsPC と変わらないではないかぁと返品した。 [url=]windows 10 アップデート[/url]
    この段階ではもう悪名高き「タイル」は見なくなります。 この場所は、崖を降りる大変危険な場所ですので、詳細は控えさせていただきます。
    [url=]office personal 2013 ダウンロード 版[/url] 手順ですが、Officeのインストール画面は閉じずに、インターネットエクスプローラーを起動して検索窓に「マイクロソフトアカウント作成」とクリックしてこの辺↓に飛びます。 ちなみに、先輩のPCのOSはWindows7です。
    [url=]office 2013 激安[/url]
    )私は、今までに使用していたパーツなどは、自分が吟味して購入したので、愛着もあり、大切に保管していたのですが、最近ネットサーフィンで中古パーツの買い取りサイトを発見、試しに見積りをしてもらいました。 「Chrome」を 閉じて「インターネットエクスプローラ」に 替え起動するとインターネットエクスプローラの使用のアンケートページが表示された。 [url=]office2016 ソフト[/url]
    ベンチマークソフトでの確認では次の通りです。 そして個々のユーザーのプレイ状況を少し検分してみれば、特定のエリアにどんな属性の人物が集っているのかが把握でき、ある人物が何を求めてどこへ行こうとしているのかも予測できることになる。
    [url=]office2010 メディア 購入[/url] また起動する前に一度、「Read Me」ファイルをお読みください。 あなたは SQL Server 管理パックをインポートします。
    [url=]win10 アップグレード[/url]

  22. #23 by Anal Vibrator on 16 de janeiro de 2017 - 7:58 pm

    one of our guests a short while ago recommended the following website

  23. #24 by online kredit hartz iv jobcenter on 16 de janeiro de 2017 - 10:23 pm

    We definitely pride ourselves on our quirkiness. The preschool home visit is always a fun challenge–what can we do to be the most unusual home they visit this year? This year, DH wore a 3 piece suit, and we were dancing to the “Tiger Rag” on the Victrola when they arrived.

  24. #25 by car insurance quotes online compare on 16 de janeiro de 2017 - 10:40 pm

    How can I submit pictures in articles upon Wikipedia with no infringing copyright?

  25. #26 by ausbildungskredit kredit geld cheat on 16 de janeiro de 2017 - 10:58 pm

    Det där verkar ju jättekul! Vad ni har planerat. Hoppas det kommer bli en framgång. Tyvärr hänger inte jag på. Är ju inte så pysslig av mig. :)Kul att du kommit igång med din egen business. Lycka till!kram

  26. #27 by yeezy boost 350 for sale on 16 de janeiro de 2017 - 11:40 pm

  27. #28 by android games free download on 16 de janeiro de 2017 - 11:41 pm

    Greetings! Very helpful advice on this article! It is the little changes that make the biggest changes. Thanks a lot for sharing!

  28. #29 by android games for pc on 16 de janeiro de 2017 - 11:51 pm

    After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.

  29. #30 by on 16 de janeiro de 2017 - 11:56 pm

    Génial les tournesols aux nouilles dorées !!! J'aimerais bien te voir en spectacle en vrai, ce doit être très sympa. J'attends de voir ton sent-bon… Bises

  30. #31 by kredit ratenkredit ohne sicherheit ägypten on 16 de janeiro de 2017 - 11:57 pm

    Thanks for writing such an easy-to-understand article on this topic.

  31. #32 by schufafrei kredit 5000 eur chf on 16 de janeiro de 2017 - 11:59 pm

    reviewing my understanding of SEO basics – here's Matt Mansfield providing a great explanation of SEO in Everyday English. For the record, it's not "gaming the system"; it's "getting in step with what employers are

  32. #33 by on 17 de janeiro de 2017 - 1:48 am

    Heck yeah bay-bee keep them coming!

  33. #34 by Tentacool Pokemon on 17 de janeiro de 2017 - 2:42 am

    whoah this blog is fantastic i really like reading your posts. Stay up the good work! You know, many people are searching round for this info, you can help them greatly.

  34. #35 by Law Office on 17 de janeiro de 2017 - 3:12 am

    I haven¡¦t checked in here for a while as I thought it was getting boring, but the last several posts are good quality so I guess I will add you back to my everyday bloglist. You deserve it my friend :)

  35. #36 by Furniture Warehouse on 17 de janeiro de 2017 - 3:19 am

    I really appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again

  36. #37 by ロレックス 偽物 違い office on 17 de janeiro de 2017 - 3:38 am

    ルイヴィトン スーパーコピー N級バッグ、財布 専門サイト問屋
    弊社は販売ルイヴィトンバッグ、財布、 小物、腕時計、靴類などでございます。
    配送の費用も無料とし、品質による返送、交換、さらに返金までも実際 にさせていただきます。
    また、従業員一同、親切、丁寧、迅速に対応 させて頂き、ご安心になってお買い物を楽しんでくださるよう精一杯力 を尽くしていくつもりです。
    送料は無料です(日本全国)! ご注文を期待しています!
    ロレックス 偽物 違い office

  37. #38 by ロレックス エクスプローラー1 偽物 996 on 17 de janeiro de 2017 - 3:38 am

    海外人気ルイヴィトン コピー老舗です。
    ロレックス エクスプローラー1 偽物 996

  38. #39 by on 17 de janeiro de 2017 - 3:43 am

    I just now wanted to thank you again for the amazing blog you have built here. It really is full of ideas for those who are definitely interested in that subject, in particular this very post. Your all actually sweet plus thoughtful of others in addition to the fact that reading your site posts is a good delight if you ask me. And what a generous surprise! Dan and I are going to have pleasure making use of your points in what we must do in a month’s time. Our listing is a distance long and tips will definitely be put to good use.

  39. #40 by on 17 de janeiro de 2017 - 3:46 am

    Alexander Hamilton had an even greater rivalry with Thomas Jefferson, in fact, Thomas Jefferson resigned as Secretary of State (in Washington’s cabinet) because of his hatred of Hamilton. This actually supports the Good Guy Hamilton (creating the meme now) argument because he set his greatest rivalry aside for the good of the country.

  40. #41 by самолетни билети до манчестър on 17 de janeiro de 2017 - 4:41 am

    There are certainly a lot of details like that to take into consideration. That is a great point to bring up. I offer the thoughts above as general inspiration but clearly there are questions like the one you bring up where the most important thing will be working in honest good faith. I don?t know if best practices have emerged around things like that, but I am sure that your job is clearly identified as a fair game. Both boys and girls feel the impact of just a moment’s pleasure, for the rest of their lives.

1 441 442 443
(não será publicado)