home *** CD-ROM | disk | FTP | other *** search
- ; This source file can be requested from NVLink.
- ; It could be re-assembled as a shader, but note that
- ; NVLink has already assembled this file into D3D opcodes
- ; You can ask NVLink for the constant and vertex slots from the API.
-
- ; Total Instructions: 25
- ; Instructions removed by optimizer: 3
- ; Used Constants: 11
- ; Used Vertex Slots: 0
- ; Used Registers: 6
-
- #define c_constants 0
- #define c_decompress_object_scale 1
- #define c_screen_const 2
- #define c_ambient_light 7
- #define c_worldviewprojection_0 3
- #define c_worldviewprojection_1 4
- #define c_worldviewprojection_2 5
- #define c_worldviewprojection_3 6
- #define c_heightfogplane 9
- #define c_heightfogconst 10
- #define c_objectspace_eyeposition 8
-
- vs.1.0
-
- ; f_move_uncompressed_position
-
- ; f_decompress_normal
- mad r1, v3, c[c_constants].zzzz, -c[c_constants].yyyy
-
- ; f_decompress_texture0
- mad r1.xy, v2.ywww, c[c_constants].wwww, v2.xzzz
- mad oT0.xy, r1.xyyy, c[c_decompress_object_scale].zzzz, -c[c_decompress_object_scale].wwww
-
- ; f_decompress_texture1
- mad r2.xy, v14.ywww, c[c_constants].wwww, v14.xzzz
- mul oT1.xy, r2.xyyy, c[c_screen_const].zzzz
-
- ; f_move_fixed_localposition
- mov r0, v0
-
- ; f_outputobjectpos_clipspace
- mov r0.w, c[c_constants].yyyy
- dp4 oPos.x, r0, c[c_worldviewprojection_0]
- dp4 oPos.y, r0, c[c_worldviewprojection_1]
- dp4 oPos.z, r0, c[c_worldviewprojection_2]
- dp4 oPos.w, r0, c[c_worldviewprojection_3]
-
- ; f_set_ambient
- mov r3, c[c_ambient_light]
-
- ; f_create_objectspace_eyevector_local_viewer
- add r4, r0, -c[c_objectspace_eyeposition]
- dp3 r4.w, r4, r4
- rsq r5.w, r4.wwww
- mul r4, -r4, r5.wwww
-
- ; f_calculate_texture_height_fog
- mov r0.w, c[c_constants].yyyy
- dp4 r0.y, r0, c[c_heightfogplane]
- rcp r0.x, r5.wwww
- mul oT2.x, r0.xxxx, c[c_heightfogconst].xxxx
- add r5.x, -c[c_heightfogconst].yyyy, c[c_heightfogconst].wwww
- add oFog, c[c_constants].yyyy, r5.xxxx
-
- ; f_output_texture_height_fog_t2
- mov oT2.y, r0.xyyy
-
- ; f_write_default_texture
-
- ; f_write_default_texture1
-
- ; f_set_diffuse_alpha_ambient
- mov oD0.w, c[c_ambient_light].wwww
-
- ; f_write_diffuse_result
- mov oD0.xyz, r3
-
- ; end
-