[Bf-cycles] UV, not working well in OSL Script node
Dalai Felinto
dfelinto at gmail.com
Tue Oct 9 21:22:19 CEST 2012
and to complement.
I consider using u,v for uv mapping based on their Simple Shader
example on the Siggraph 2012 presentation:
page 14:
http://blog.selfshadow.com/publications/s2012-shading-course/martinez/s2012_pbs_osl_notes_v3.pdf
##########
surface
example_shader_1
[[string help = "Simple texture mapped diffuse material"]]
(
string texture_name = ""
[[string help = "A texture file name"]]
)
{
color paint = texture(texture_name, u, v);
Ci = paint * diffuse(N);
}
##########
--
Dalai
More information about the Bf-cycles
mailing list