Rendering - Creating a camera facing shader
I'm trying to create a nice planet with good atmosphere. I've made three concentric spheres, the smallest a planet skin, the next two slightly bigger than the last and i intend them to have camera facing shaders, so that the atmosphere is thickest around teh edges. I had managed this once in 4.0 but forgot how I did it. I'm in 5 now and a bit fuzzy on the use of render nodes for this. Any ideas?
Thanks.. :banghead: |
You could use the Sampler Info node for this. Use it's facing ratio to control a Ramp's V coordinate and then the Ramp's color to control the shader's Transparency. Can't check right now but you may need to add a Set Range node between the Sampler Info and the Ramp to scale the facing ratio to 0 - 1 (it's -1 to 1 by default if i remember correct).
|
durr
found it...
Map Transparency to a Sampler Info node, using Facing Ration connected to Transparency-RGB. thx anyway :rolleyes: |
wow, yours is a better solution, am checking it out. thanks!
|
All times are GMT. The time now is 03:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018