POV-Ray : Newsgroups : povray.newusers : bicubic patch editor : Re: bicubic patch editor Server Time
26 Apr 2025 11:41:24 EDT (-0400)
  Re: bicubic patch editor  
From: Bald Eagle
Date: 1 Apr 2025 14:15:00
Message: <web.67ec2c1041fe044a911b6e125979125@news.povray.org>
"gulino" <nomail@nomail> wrote:

> but I have a error in
> Grass (x, y,z)*GrassHeight}
>
> "Expected '.', * found instead"

Yeah - inbuilt pigment functions return a full rgbft vector, so you have to
specify which vector component you want to use in the crippled user-defined
scalar function you're writing.

So, just do:
Grass (x, y,z).red*GrassHeight

- BW


Post a reply to this message

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