Last change
on this file since 10590 was
7912,
checked in by landauf, 14 years ago
|
not exactly sure what this does, but it is included in most standard shaders in Ogre and seems to prevent a crash on low end hardware.
|
-
Property svn:eol-style set to
native
|
File size:
639 bytes
|
Rev | Line | |
---|
[5312] | 1 | //Cg Pixel Shader ps_2_0 |
---|
| 2 | fragment_program Radial_Blur_ps_cg cg |
---|
| 3 | { |
---|
| 4 | source Radial_Blur_FP.cg |
---|
| 5 | profiles ps_2_0 arbfp1 |
---|
| 6 | entry_point main |
---|
| 7 | |
---|
| 8 | } |
---|
| 9 | |
---|
| 10 | |
---|
| 11 | //Effect: Radial Blur |
---|
| 12 | material Ogre/Compositor/Radial_Blur |
---|
| 13 | { |
---|
| 14 | technique |
---|
| 15 | { |
---|
| 16 | pass |
---|
| 17 | { |
---|
| 18 | //State: D3DRS_CULLMODE, Value : D3DCULL_NONE |
---|
| 19 | cull_hardware none |
---|
| 20 | cull_software none |
---|
| 21 | depth_check off |
---|
| 22 | |
---|
[7912] | 23 | vertex_program_ref Ogre/Compositor/StdQuad_Tex2a_vp |
---|
| 24 | { |
---|
| 25 | } |
---|
| 26 | |
---|
[5312] | 27 | fragment_program_ref Radial_Blur_ps_cg |
---|
| 28 | { |
---|
| 29 | param_named sampleDist float 0.5 |
---|
| 30 | param_named sampleStrength float 2.2 |
---|
| 31 | } |
---|
| 32 | texture_unit |
---|
| 33 | { |
---|
| 34 | tex_coord_set 0 |
---|
| 35 | tex_address_mode clamp |
---|
| 36 | filtering trilinear |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | } |
---|
| 40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.