home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 January
/
Gamestar_80_2006-01_dvd.iso
/
Dema
/
splatmagazinerenegadepaintball_demo.exe
/
VShader072-000367135751.vsh
< prev
next >
Wrap
Text File
|
2005-10-13
|
3KB
|
93 lines
; 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: 35
; Instructions removed by optimizer: 5
; Used Constants: 12
; Used Vertex Slots: 0
; Used Registers: 6
#define c_constants 0
#define c_decompress_object_scale 1
#define c_worldviewprojection_0 5
#define c_worldviewprojection_1 6
#define c_worldviewprojection_2 7
#define c_worldviewprojection_3 8
#define c_alpha_distance 11
#define c_heightfogplane 9
#define c_heightfogconst 10
#define c_objectspace_eyeposition 3
#define c_offset_const 2
#define c_facing_up_vector 4
vs.1.1
; f_move_uncompressed_position
; f_decompress_normal
mad r1, v3, c[c_constants].zzzz, -c[c_constants].yyyy
; f_decompress_texture0
mad r2.xy, v2.ywww, c[c_constants].wwww, v2.xzzz
mad oT0.xy, r2.xyyy, c[c_decompress_object_scale].zzzz, -c[c_decompress_object_scale].wwww
; f_move_fixed_localposition
; f_move_fixed_localnormal
; f_uncompress_facing_offset
mad r3.xyz, v5.xyzz, c[c_offset_const].xxxx, -c[c_offset_const].yyyy
; f_auto_face_normal_skew_up
add r4, v0, -c[c_objectspace_eyeposition]
mul r5.xyz, r1.yzxx, r4.zxyy
mad r4.xyz, r1.zxyy, -r4.yzxx, r5.xyzz
dp3 r4.w, r4.xyzz, r4.xyzz
rsq r4.w, r4.wwww
mul r4.xyz, r4.xyzz, r4.wwww
mul r5.xyz, r4.yzxx, r1.zxyy
mad r1.xyz, r4.zxyy, -r1.yzxx, r5.xyzz
mad r1.xyz, r1.xyzz, r3.xxxx, v0.xyzz
mad r4.xyz, r4.xyzz, r3.yyyy, r1.xyzz
mad r3.xyz, c[c_facing_up_vector].xyzz, r3.zzzz, r4.xyzz
; f_outputobjectpos_clipspace
mov r3.w, c[c_constants].yyyy
dp4 oPos.x, r3, c[c_worldviewprojection_0]
dp4 oPos.y, r3, c[c_worldviewprojection_1]
dp4 oPos.z, r3, c[c_worldviewprojection_2]
dp4 oPos.w, r3, c[c_worldviewprojection_3]
; f_set_vertexcolor
mov r4, v14
; f_create_objectspace_eyevector_local_viewer
add r1, r3, -c[c_objectspace_eyeposition]
dp3 r1.w, r1, r1
rsq r0.w, r1.wwww
mul r1, -r1, r0.wwww
; f_calculate_texture_height_fog
mov r3.w, c[c_constants].yyyy
dp4 r3.y, r3, c[c_heightfogplane]
rcp r3.x, r0.wwww
mul oT1.x, r3.xxxx, c[c_heightfogconst].xxxx
add r1.x, -c[c_heightfogconst].yyyy, c[c_heightfogconst].wwww
add oFog, c[c_constants].yyyy, r1.xxxx
; f_output_texture_height_fog_t1
mov oT1.y, r3.xyyy
; f_write_default_texture
; f_set_diffuse_alpha_distance
rcp r0.w, r0.wwww
mad oD0.w, r0.wwww, c[c_alpha_distance].yyyy, c[c_alpha_distance].xxxx
; f_write_diffuse_result
mov oD0.xyz, r4
; end