etqw-sdk/base/renderprogs/tools/pathfinder.rprog

19 lines
371 B
Text
Raw Permalink Normal View History

2008-05-29 00:00:00 +00:00
renderProgram tools/pathFinder {
program vertex arb { <%
OPTION ARB_position_invariant;
MOV result.texcoord[0], vertex.position;
%> }
program fragment arb { <%
TEMP R0;
# move to min and scale
ADD R0.x, fragment.texcoord[0].z, -program.local[0].x;
MUL R0.x, R0.x, program.local[0].y;
# output
MOV result.color, R0.x;
%> }
}