POV-Ray : Newsgroups : povray.general : deforming a texture on a mesh : Re: deforming a texture on a mesh Server Time
29 Jul 2024 20:24:41 EDT (-0400)
  Re: deforming a texture on a mesh  
From: Christian Froeschlin
Date: 6 Sep 2010 18:12:52
Message: <4C856763.3040507@chrfr.de>
esterichia wrote:

> Is it possible to use define fx, fy as macros? The transformation I want to
> apply depends on some parameters I have defined and parameters can not be passed
> to functions.

Not quite sure what you mean. This works for me:

#local PARAM = 5;
#local f_param = function {2*x*PARAM}
#debug str(f_param(1,0,0),3,0)
#debug "\n"


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.