diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 23:12:27 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 23:12:27 +0000 |
commit | 41cd6c47b23975098cd155517790e018670785e7 (patch) | |
tree | 247333528ad674d427ba96b1e05810f7961d609e /src/demos/hdr/shaders/arbfp1/object_vp.arbvp1 | |
parent | 935d2596c13371bb745d921dbcb9f05b0c11a010 (diff) |
Copied JOGL_2_SANDBOX r350 on to trunk; JOGL_2_SANDBOX branch is now closed
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@352 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/hdr/shaders/arbfp1/object_vp.arbvp1')
-rwxr-xr-x | src/demos/hdr/shaders/arbfp1/object_vp.arbvp1 | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/demos/hdr/shaders/arbfp1/object_vp.arbvp1 b/src/demos/hdr/shaders/arbfp1/object_vp.arbvp1 new file mode 100755 index 0000000..1f2a6fa --- /dev/null +++ b/src/demos/hdr/shaders/arbfp1/object_vp.arbvp1 @@ -0,0 +1,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 |