source: OGRE/trunk/ogrenew/Samples/Media/DeferredShadingMedia/deferred.hlsl.program @ 692

Revision 692, 1.5 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1// Materials for rendering to the fat buffer
2
3// Plain phong
4vertex_program DeferredShading/material/hlsl/vs hlsl
5{
6        source DeferredShading/material/hlsl/vs.hlsl
7        target vs_1_1
8        entry_point main
9       
10        default_params
11        {
12                param_named_auto worldView worldview_matrix
13                param_named_auto worldViewProj worldviewproj_matrix
14        }
15}
16fragment_program DeferredShading/material/hlsl/ps hlsl
17{
18        source DeferredShading/material/hlsl/ps.hlsl
19        target ps_2_0
20        entry_point main
21        default_params
22        {
23                param_named specularity float 0.0
24        }
25}
26fragment_program DeferredShading/material/hlsl/notex_ps hlsl
27{
28        source DeferredShading/material/hlsl/notex_ps.hlsl
29        target ps_2_0
30        entry_point main
31        default_params
32        {
33                param_named specularity float 0.0
34        }
35}
36
37// Normal mapping
38vertex_program DeferredShading/material/hlsl/nm_vs hlsl
39{
40        source DeferredShading/material/hlsl/nm_vs.hlsl
41        target vs_1_1
42        entry_point main
43       
44        default_params
45        {
46                param_named_auto worldView worldview_matrix
47                param_named_auto worldViewProj worldviewproj_matrix
48        }
49}
50fragment_program DeferredShading/material/hlsl/nm_ps hlsl
51{
52        source DeferredShading/material/hlsl/nm_ps.hlsl
53        target ps_2_0
54        entry_point main
55        default_params
56        {
57                param_named specularity float 0.0
58        }
59}
60fragment_program DeferredShading/material/hlsl/nm_notex_ps hlsl
61{
62        source DeferredShading/material/hlsl/nm_notex_ps.hlsl
63        target ps_2_0
64        entry_point main
65        default_params
66        {
67                param_named colour float3 0.7 0.7 0.7
68                param_named specularity float 0.0
69        }
70}
Note: See TracBrowser for help on using the repository browser.