Hey guys, I’m having some unexpected results with the nVIDIA register combiner language, and wonder if somebody could tell me what I’m missing. Here’s a snippet of code:
nvparse(
"!!RC1.0
"
"const0 = (1, 1, 1, 1);
"
"{
"
" rgb
"
" {
"
" spare0 = const0 . const0;
"
" spare1 = const0 * tex0;
"
" }
"
"}
"
"out.rgb = spare1;
"
);
This is obviously just a stupid way of saying out.rgb = tex0, however when I change it to:
nvparse(
"!!RC1.0
"
"const0 = (1, 1, 1, 1);
"
"{
"
" rgb
"
" {
"
" spare0 = const0 . const0;
"
" spare1 = spare0 * tex0;
"
" }
"
"}
"
"out.rgb = spare1;
"
);
My polys turn up as black. I can’t figure out why, but my guess is because of an alpha problem when I do:
" spare1 = spare0 * tex0;
"
I’ve tried isolating it to just use the rgb values, but this doesn’t seem to help. What am I doing wrong guys?
Thanks!
[This message has been edited by rgreene (edited 06-04-2002).]