Last change
on this file since 5312 was
5312,
checked in by landauf, 16 years ago
|
added shaders (compositors, materials, cg programs and textures)
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Rev | Line | |
---|
[5312] | 1 | fragment_program Ogre/Compositor/SharpenEdgesFP_cg cg |
---|
| 2 | { |
---|
| 3 | source SharpenEdgesFP.cg |
---|
| 4 | entry_point sharpenEdges_fp |
---|
| 5 | profiles ps_2_0 arbfp1 |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | fragment_program Ogre/Compositor/SharpenEdgesFP_ps_2_a hlsl |
---|
| 9 | { |
---|
| 10 | source SharpenEdgesFP.cg |
---|
| 11 | entry_point sharpenEdges_fp |
---|
| 12 | target ps_2_a |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | fragment_program Ogre/Compositor/SharpenEdgesFP unified |
---|
| 16 | { |
---|
| 17 | delegate Ogre/Compositor/SharpenEdgesFP_ps_2_a |
---|
| 18 | delegate Ogre/Compositor/SharpenEdgesFP_cg |
---|
| 19 | |
---|
| 20 | default_params |
---|
| 21 | { |
---|
| 22 | param_named_auto vTexelSize inverse_texture_size 0 |
---|
| 23 | } |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | material Ogre/Compositor/SharpenEdges |
---|
| 27 | { |
---|
| 28 | technique |
---|
| 29 | { |
---|
| 30 | |
---|
| 31 | pass |
---|
| 32 | { |
---|
| 33 | cull_hardware none |
---|
| 34 | cull_software none |
---|
| 35 | depth_func always_pass |
---|
| 36 | |
---|
| 37 | //DirectX 9.0 HLSL Vertex Shader vs_1_1 |
---|
| 38 | //vertex_program_ref PostFilters/SharpenEdgesVP |
---|
| 39 | //{ |
---|
| 40 | //} |
---|
| 41 | |
---|
| 42 | vertex_program_ref Ogre/Compositor/StdQuad_Tex2a_vp |
---|
| 43 | { |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | //DirectX 9.0 HLSL Pixel Shader ps_2_0 |
---|
| 47 | fragment_program_ref Ogre/Compositor/SharpenEdgesFP |
---|
| 48 | { |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | texture_unit |
---|
| 52 | { |
---|
| 53 | tex_coord_set 0 |
---|
| 54 | tex_address_mode clamp |
---|
| 55 | filtering trilinear |
---|
| 56 | } |
---|
| 57 | |
---|
| 58 | } |
---|
| 59 | } |
---|
| 60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.