From 41cd6c47b23975098cd155517790e018670785e7 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 15 Jun 2009 23:12:27 +0000 Subject: 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 --- src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1 | 45 +++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1 (limited to 'src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1') diff --git a/src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1 b/src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1 new file mode 100755 index 0000000..c6d5b55 --- /dev/null +++ b/src/demos/hdr/shaders/arbfp1/object_hilo.arbfp1 @@ -0,0 +1,45 @@ +!!ARBfp1.0 +# cgc version 1.3.0001, build date Aug 4 2004 10:01:10 +# command line args: -profile arbfp1 +# source file: ../cg/object_hilo.cg +# source file: ../cg/hdr.cg +#vendor NVIDIA Corporation +#version 1.0.02 +#profile arbfp1 +#program main +#semantic main.envMap_rg : TEXUNIT0 +#semantic main.envMap_b : TEXUNIT1 +#var float4 In.HPosition : : : 0 : 0 +#var float4 In.P : : : 0 : 0 +#var float3 In.N : $vin.TEX1 : TEX1 : 0 : 1 +#var float3 In.I : $vin.TEX2 : TEX2 : 0 : 1 +#var samplerCUBE envMap_rg : TEXUNIT0 : texunit 0 : 1 : 1 +#var samplerCUBE envMap_b : TEXUNIT1 : texunit 1 : 2 : 1 +#var half4 main : $vout.COL : COL : -1 : 1 +#const c[0] = 2 1 0 5 +#const c[1] = 0.9799805 0.02000427 +PARAM c[2] = { { 2, 1, 0, 5 }, + { 0.97998047, 0.020004272 } }; +TEMP R0; +TEMP R1; +DP3 R0.y, fragment.texcoord[2], fragment.texcoord[2]; +RSQ R0.y, R0.y; +DP3 R0.x, fragment.texcoord[1], fragment.texcoord[1]; +MUL R1.xyz, R0.y, fragment.texcoord[2]; +RSQ R0.x, R0.x; +MUL R0.xyz, R0.x, fragment.texcoord[1]; +DP3 R0.w, -R1, R0; +DP3 R1.w, R0, R1; +MUL R0.xyz, R0, R1.w; +MAD R1.xyz, -R0, c[0].x, R1; +ADD R0.w, -R0, c[0].y; +MAX R0.y, R0.w, c[0].z; +TEX R0.x, R1, texture[1], CUBE; +POW R0.y, R0.y, c[0].w; +MOV R0.z, R0.x; +MAD R0.w, R0.y, c[1].x, c[1].y; +TEX R0.xy, R1, texture[0], CUBE; +MUL result.color.xyz, R0, R0.w; +MOV result.color.w, c[0].y; +END +# 19 instructions, 2 R-regs -- cgit v1.2.3