summaryrefslogtreecommitdiffstats
path: root/src/demos/hdr/shaders/arbfp1/object_vp.arbvp1
blob: 1f2a6fab640701c0b0543acc7a23f83b6554462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
!!ARBvp1.0
# cgc version 1.3.0001, build date Aug  4 2004 10:01:10
# command line args: -profile arbvp1
# source file: ../cg/object_vp.cg
# source file: ../cg/hdr.cg
#vendor NVIDIA Corporation
#version 1.0.02
#profile arbvp1
#program main
#semantic main.modelViewProj
#semantic main.model
#semantic main.eyePos
#var float4 In.Position : $vin.POSITION : POSITION : 0 : 1
#var float4 In.Normal : $vin.NORMAL : NORMAL : 0 : 1
#var float4x4 modelViewProj :  : c[0], 4 : 1 : 1
#var float4x4 model :  : c[4], 4 : 2 : 1
#var float3 eyePos :  : c[8] : 3 : 1
#var float4 main.HPosition : $vout.HPOS : HPOS : -1 : 1
#var float4 main.P : $vout.TEX0 : TEX0 : -1 : 1
#var float3 main.N : $vout.TEX1 : TEX1 : -1 : 1
#var float3 main.I : $vout.TEX2 : TEX2 : -1 : 1
PARAM c[9] = { program.local[0..8] };
TEMP R0;
TEMP R1;
DP4 result.position.w, vertex.position, c[3];
DP4 result.position.z, vertex.position, c[2];
DP4 result.position.y, vertex.position, c[1];
DP4 result.position.x, vertex.position, c[0];
DP4 R0.w, vertex.position, c[7];
DP4 R0.z, vertex.position, c[6];
DP4 R0.y, vertex.position, c[5];
DP3 R1.z, vertex.normal, c[6];
DP3 R1.y, vertex.normal, c[5];
DP3 R1.x, vertex.normal, c[4];
DP4 R0.x, vertex.position, c[4];
DP3 R1.w, R1, R1;
ADD result.texcoord[2].xyz, R0, -c[8];
RSQ R1.w, R1.w;
MOV result.texcoord[0], R0;
MUL result.texcoord[1].xyz, R1.w, R1;
END
# 16 instructions, 2 R-regs