Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > RenderMan interface > "Surface" calls...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 683 of 788
Post > Topic >>

"Surface" calls in light shaders

by "STefano" <tabacco.stefano@[EMAIL PROTECTED] > Oct 3, 2006 at 09:26 AM

Hi all , does something like this have any sense ?

    code:
    light
    surfLight(
            float intensity = 1;
            color lightcolor = 1;
            point from = point "shader" (0,0,0);
            )
    {
      illuminate(from) {
       color surfaceCol ;
       float getme = surface( "_diffuse" , surfaceCol );
       printf ( "%f %c \n", getme , surfaceCol ) ;
          Cl += surfaceCol; // it should look twice as bright
    }
    }



It seems like i get nothing returning from the

    code:
     surface( "_diffuse" , surfaceCol )

call (the _diffuse component is an output color of a surface shader)?
Thanks ,
STe
 




 2 Posts in Topic:
"Surface" calls in light shaders
"STefano" <t  2006-10-03 09:26:03 
Re: "Surface" calls in light shaders
"georgeharker@[EMAIL  2006-10-04 01:48:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 0:15:00 CST 2008.