Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/Shader_HS18/programs/Cg/Bloom2_ps20.cg @ 12302

Last change on this file since 12302 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 1.0 KB
RevLine 
[12115]1//---------------------------------------------
2// Bloom
3
4
5float4 main(float2 texCoord: TEXCOORD0,
6                uniform sampler RT: register(s0),
7                uniform sampler Blur1: register(s1),
8                uniform float OriginalImageWeight,
9                uniform float BlurWeight
10                ) : COLOR {
11
12
13        float4 sharp = tex2D(RT,   texCoord);
14        float4 blur  = tex2D(Blur1, texCoord);
15
16        //return blur*0.5+sharp*0.5;
17        return blur*BlurWeight+sharp*OriginalImageWeight;
18        //return blur;
19
20        //return ( sharp + blur * 1.8 ) / 2;
21
22//      return (sharp*3/6 + (blur*4/6))*float4(1.5, 1.5, 1.5, 1);;
23
24//      float4 color    = lerp( sharp, blur, 0.4f );
25
26//      return color;
27
28
29/*
30        return ( sharp + blur * 1.8 ) / 2 +
31                         luminance(blur) *
32                         float4( 0.5, 0.5, 0.5, 0) +
33                         luminance(sharp) *
34                         float4( 0.3, 0.3, 0.3, 0);
35*/
36/*
37        return ( sharp + blur * 0.9) / 2 +
38                         luminance(blur) * float4(0.1, 0.15, 0.7, 0);
39*/
40
41/*
42        return ( sharp + blur * 0.9) / 2 +
43                         luminance(blur) * float4(0.1, 0.15, 0.7, 0);
44*/
45
46//      float4 retColor = luminance( sharp ) +
47//                                                      luminance( blur ) + blur / 2;
48//      return retColor;
49}
50
51
52
53
54
55
56
57
58
Note: See TracBrowser for help on using the repository browser.