POV-Ray : Newsgroups : povray.general : Vertex / fragment shader programs... : Re: Vertex / fragment shader programs... Server Time
25 Apr 2024 01:14:21 EDT (-0400)
  Re: Vertex / fragment shader programs...  
From: Benjamin Chambers
Date: 4 May 2017 18:01:33
Message: <590ba4bd$1@news.povray.org>
On 5/3/2017 3:38 PM, Heriberto Delgado wrote:
> Hello everyone!
>
> I'm entirely new to POV-Ray, apologies if this sounds like something only a
> complete newbie would ask.
>
> Does POV-Ray possess something akin to vertex / fragment shaders, as in small
> programs able to preprocess vertex input for polygon meshes,

Not exactly, but in the past I wrote a POV macro that would read the 
text of a mesh file, manipulate the mesh, and then build it within POV 
(I was doing tessellation at the time, but with this method you could do 
pretty much anything a vertex shader could do).

> as well as
> modifying color information for each pixel ("fragment") captured from the scene,
> as seen in GPU-based video adapter hardware nowadays?

Again not exactly, however POV-Ray possesses a very sophisticated 
texturing system that allows you to define procedural textures for your 
objects.

You might get a better answer if you told us what ends you wish to 
achieve, rather than asking what tools are available, and we'll let you 
know how to accomplish it with POV.


Post a reply to this message

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