• Advertisement
Sign in to follow this  

sampler2D vertex shader. work on older computers?

This topic is 2102 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, so I need to access a texture in my vertex shader, but I want the game to run on cards that only support shader model 2. Anyone know if acessing a texture in a vertex shader crashes on old cards? also is there a website that shows the limitations of shader models. like what they support and dont support? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
It may or may not crash, but it shouldn't be available on SM2 hardware.

Direct3D Shader Models don't quite map directly to GLSL versions by the way, but they are good enough for a general guideline nonetheless. The best reference for these is probably the DirectX SDK or the [url="http://msdn.microsoft.com/en-us/library/windows/desktop/bb147365%28v=vs.85%29.aspx"]online version at MSDN[/url] - so long as you bear in mind that it's a Direct3D Shader Model and therefore GLSL is going to exhibit some subtle (or not-so-subtle) differences. For pure GLSL the best reference would be the specs at [url="http://www.opengl.org/documentation/glsl/"]OpenGL.org[/url].

Share this post


Link to post
Share on other sites
I think it's shader model 3 that unifies use of textures in pixel and vertex shaders.

You can also see user's shader models here (it's Unity users but it's a really good information source)
[url="http://unity3d.com/webplayer/hwstats/pages/web-2012Q1-shader.html"]http://unity3d.com/webplayer/hwstats/pages/web-2012Q1-shader.html[/url]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement