mrdoob/three.js — Issue #719: Detecting if the shaders are supported on the client's machine?
Author: esfandiar
Created: 2011-11-03 01:59:28+00:00
State: open

Hi,

I'm just wondering if there is a way to detect if the shaders (such as normal map shader) are available on the client's machine or not? The reason I'm asking is that with most modern graphic cards normal maps for instance seem to work great, but it seems like the texture shows up black if the normal map for instance is not supported (or at least that's what I think my issue is). I don't see a javascript error either on the machine that has this issue. So basically I'm wondering if I can detect that and if the shader is not supported then I use something like lambert material without the normal mapping.

Thanks again