|
|
Op 2-4-2024 om 17:28 schreef Thomas de Groot:
> you can simply write:
>
> #macro DakotaRedGranite(CSC, Pol, Typ, Pat1, Pat2, Blend, SS)
> texture { DakotaRedGranite_texture(CSC, Pol, Typ, Pat1, Pat2,
> Blend, SS) }
> #end
>
NOTE==> even better: you can completely skip this particular macro
definition!
> And then apply the macro in a scene, in the following way if you
> need/want to wrap the texture in a material{} declaration:
>
// sample sphere
sphere { <0,0,0>, 1.00
material {
texture { DakotaRedGranite_texture (CSC, Pol, Typ, Pat1, Pat2,
Blend, SS) }
interior { ior 1.6 }
}
scale<1,1,1> rotate<0,0,0> translate<0,1.35,0>
} // end of sphere -----------------------------------
As your granite macro version generates a texture{}, it can be used as
such in a scene.
> Bill will note other issues or improvements I am sure. ;-)
[ still valid ;-) ]
--
Thomas
Post a reply to this message
|
|