please reply to this
hiiiiii
i just come at point of compile Cg .cg(progs byfew change of gl_Fra/gl_Po in file)
when i compiled 01Vertex_Program’s cg program
by these of changes i get
file
both below code for work in fragment progs
!!ARBfp1.0\
# cgc version 2.2.0006, build date Mar 31 2009\
# command line args: -oglsl -profile arbvp1 -profile arbfp1\
# source file: C2E1v_green.cg\
#vendor NVIDIA Corporation\
#version 2.2.0.6\
#profile arbfp1\
#program C2E1v_green\
#var float4 gl_FragColor : $vout.COLOR : COL : -1 : 1\
#const c[0] = 0 1\
PARAM c[1] = { { 0, 1 } };\
MOV result.color, c[0].xyxx;\
END\
# 1 instructions, 0 R-regs
which not work on assginment(char object)
but when i make it to
!!ARBfp1.0\
PARAM c[1] = { { 0, 1 } };\
MOV result.color, c[0].xyxx;\
END
then it workssss
but
#…
line must be used in comments
but for green color i need to use fragment profile(with gl_Frag change)
but cg use it directly in the vertex program && profile
thanks for reading/thinking/helping
thanks in advance
apologies for grammer
N being language barrier