POV-Ray : Newsgroups : povray.off-topic : GPU rendering : Re: GPU rendering Server Time
7 Sep 2024 11:25:37 EDT (-0400)
  Re: GPU rendering  
From: Orchid XP v8
Date: 18 Jul 2008 04:52:07
Message: <488059b7$1@news.povray.org>
scott wrote:
>> Ah, OK. Well I have a Haskell binding to OpenGL, but not for DirectX.
>>
>> So the exact function calls you're talking about won't help me, but it 
>> gives me some idea what I'm trying to do...
> 
> I would try and find some very simple demos of pixel and vertex shaders 
> written in OpenGL first and get them working.  IIRC they are called 
> something else in OpenGL too, just to make matters more confusing.

OpenGL apparently calls a pixel shader a "fragment shader".

I found a small program that allows you to type in GLSL source code and 
see it applied to a mesh object. Should help me get to know the 
language, but won't help much with rendering a texture of floats. ;-)

The "other" fun thing is that shaders were introduced in OpenGL 2.0, for 
which no language spec is available online. You have to buy the book for 
that. But having a look at the Haskell OpenGL bindings, I think I see 
how it's supposed to work...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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