|
|
Am 29.05.2018 um 13:50 schrieb Thomas de Groot:
> This is not a problem /per se/ if I apply the transformation to the
> whole texture. However, for reasons I do not want to go into here
> presently and to simplify the question, I would like to apply the
> transformation /only/ to the image_pattern{} part of the texture. This
> seems not to be possible, or am I wrong?
I would naively expect the following to work:
texture {
image_pattern { ... }
translate <...>
...
texture_map {
...
}
}
but I suspect you tried that already.
The source code isn't immediately obvious about whether this would have
the desired effect or not, so my naive expectation might be out of touch
with reality.
If that doesn't work, I'm pretty sure no other construct will - except
of course for individually un-doing the transformation for each
component in the texture map:
#local Trans = transform {
translate <...>
...
}
texture {
image_pattern { ... }
texture_map {
[0.0 pigment { ... transform { Trans inverse } ]
[1.0 pigment { ... transform { Trans inverse } ]
}
transform { Trans }
}
Post a reply to this message
|
|