|
![](/i/fill.gif) |
Salvete,
Is it possible to have, on one mesh2 with uv_vectors, two layered
textures, *one of which* uses uv_mapping? (For mathematical surfaces,
I'd like to draw parameter lines this way.)
mesh2 {
vertex_vectors { 9,
<0, 0, 0>, <0, 1, 1>, <0, 2, 0>,
<1, 0, 1>, <1, 1, 1>, <1, 2, 1>,
<2, 0, 0>, <2, 1, 1>, <2, 2, 0> }
uv_vectors { 9,
<0, 0>, <0, 1.025>, <0, 2.05>,
<1.025, 0>, <1.025, 1.025>, <1.025, 2.05>,
<2.05, 0>, <2.05, 1.025>, <2.05, 2.05> }
face_indices { 8,
<0, 1, 4>, <0, 4, 5>, <1, 2, 5>, <2, 6, 5>,
<4, 5, 7>, <5, 8, 7>, <5, 6, 9>, <5, 9, 8> }
texture {
pigment {
gradient z
color_map { [0 rgb <1, 0, 0>] [1 rgb <0, 0, 1>] }
}
}
texture {
uv_mapping pigment {
gradient u
color_map { [0 rgb 0] [0.05 rgb 0]
[0.05 rgbft <0,0,0,1,1>] [1 rgbft <0,0,0,1,1>] }
}
}
texture {
uv_mapping pigment {
gradient v
color_map { [0 rgb 0] [0.05 rgb 0]
[0.05 rgbft <0,0,0,1,1>] [1 rgbft <0,0,0,1,1>] }
}
}
}
regards,
Christopher Creutzig
Post a reply to this message
|
![](/i/fill.gif) |