mic Posted October 17, 2008 Share Posted October 17, 2008 hello! tell me please what i'm doing wrong: i want to render shadow pass using rsl simple shader: surface InShadow( ) { color C, res; normal Nf = normalize(N); illuminance(P, Nf, PI/2) { lightsource("__inShadowC", C); res += C; } Oi = 1; Ci = res; } then i create point light (hlight), ray-trace shadows on, put this mat on the objects and render. the result is not adequate.) where is the error? Quote Link to comment Share on other sites More sharing options...
Alanw Posted October 19, 2008 Share Posted October 19, 2008 Did you create a light shader that outputs "__inShadowC"? Quote Link to comment Share on other sites More sharing options...
mic Posted October 20, 2008 Author Share Posted October 20, 2008 Did you create a light shader that outputs "__inShadowC"? yes, that was the answer. i thought (why? =)) that asad_light have this output till i have viewed the code) the problem solved.) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.