home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2006 January
/
Gamestar_80_2006-01_dvd.iso
/
Dema
/
splatmagazinerenegadepaintball_demo.exe
/
VShader072-000367133703.vsh
< prev
next >
Wrap
Text File
|
2005-10-13
|
2KB
|
87 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: 32
; Instructions removed by optimizer: 5
; Used Constants: 11
; 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 10
#define c_fogconst 9
#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 r3, r3, -c[c_objectspace_eyeposition]
dp3 r3.w, r3, r3
rsq r1.w, r3.wwww
mul r3, -r3, r1.wwww
; f_calculate_linear_range_fog
rcp r3.w, r1.wwww
add r3.x, c[c_fogconst].yyyy, -r3.wwww
mul r3.x, r3.xxxx, c[c_fogconst].zzzz
add oFog, r3.xxxx, -c[c_fogconst].xxxx
; f_write_default_texture
; f_set_diffuse_alpha_distance
rcp r1.w, r1.wwww
mad oD0.w, r1.wwww, c[c_alpha_distance].yyyy, c[c_alpha_distance].xxxx
; f_write_diffuse_result
mov oD0.xyz, r4
; end