Skip to main content
gamedev.net
🔒 Locked

Pixel Shaders.......

Started by maverick20 Aug 26, 2005 at 6:26 PM 4 replies 700+ views
Original Post
maverick20
maverick20
PixelShaders are only supported with DirectX??? Does this feature makes DirectX more powerfull than OpenGL?????
Sneftel
Sneftel
Huh? You can use pixel shaders with OpenGL.
Toji
Toji
Where did you hear that? Pixel shaders are supported in both, though OpenGL refers to them as "Fragment" shaders (A more technically correct term, IMHO).

In general there are very few things DirectX can do that OpenGL can't, and vica-versa.
// The user formerly known as Tojiro67445, formerly known as Toji [smile]
blizzard999
blizzard999
DX and GL are different API wrapping the same hardware.
With GL you have to look at the concept of extension (functions dynamically linked at runtime)
And dont worry about GL because it's used worldwide not only to make games. [smile]
Yann L
Yann L
Quote:
Original post by Anonymous Poster
from what I understand is a shader in ogl or d3d is a scripting language that is supposed to compile down to the native gfx card shader assembly, am I correct here?

Pretty much, although GLSL/HLSL/Cg are not really scripting languages.

Quote:

if I am, is it better to learn specific assemblies for performance purpose??

No. HL shaders are potentially faster, as the compiler can optimize the output ASM specifically to the 3D chipset it happens to run on.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.