hello,
im using cg v1.41 with geforce7800gtx graphics card.
i need to do texture lookups in the vertex and the fragment shader to different textures.
i use 1 vertex texture and 2 fragment textures.
as im doing now, it seems, that the fragment texture is overwriting the vertex texture!!??
here is the cg-compiler output for the vertex texture:
#var sampler2D vertexTexture : : texunit 0 : 12 : 1
and the output for the fragment textures:
#var sampler2D fragmentTexture0 : : texunit 0 : 11 : 1
#var sampler2D fragmentTexture1 : : texunit 1 : 12 : 1
can someone explain to me, what im doing wrong?
should i somehow compile the programs together or say, that texunit 0 is already in use?
thanks a lot,
chris