Hi,
i want to assign black/white color to poly object based on distance from locator as below reference .
See this
https://vimeo.com/115913571
Here is my test code, tell me whts wrong in code ??
i want to assign black/white color to poly object based on distance from locator as below reference .
See this
https://vimeo.com/115913571
Here is my test code, tell me whts wrong in code ??
Code:
surface rbDepth_material [[ string description = "RB Depth Material" ]] ( point loc = point(0.0, 0.0, 0.0), float min = 0.0, float max = 3.0 ) { color diffuseColor = linearstep(min, max, distance(loc, P)); Ci = diffuseColor; }
Comment