IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> brightness contrast
nbac
post Nov 6 2009, 11:39 AM
Post #1


Member
**

Group: Members
Posts: 5
Joined: 29-June 09
Member No.: 8,692



hi

can someone give me a hint on a correct contrast function for my pixelshader?

thx
Go to the top of the page
 
+Quote Post
nbac
post Nov 16 2009, 09:29 AM
Post #2


Member
**

Group: Members
Posts: 5
Joined: 29-June 09
Member No.: 8,692



in case somebody wants to know

float3 diff = tex2D(diffuseSampler,IN.TexCoord).rgb;
float3 diffBrightnessContrast = (diff.rgb - 0.5) * Contrast + 0.5 + Brightness;
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Copyright © 2008 NVIDIA® Corporation.  Terms of Use | Legal Info | Privacy Policy Time is now: 23rd November 2009 - 02:08 PM