Is there way to create only a texture having single component float value each pixel? I want to draw shadow map into texture, I don't want to use the extension for depth format because it is not good for multi buffer drawing.
I know I can use UBYTE RGBA texture and split float value for each colors, but I afraid of performance effect of that solution.
I know there is a texture format gl.RED in OpenGL 4, if there was such texture format it is suitable for this situation.But It seems WebGL don't have such feature. First I thought gl.ALPHA is that, but it seems different thing. gl.LUMINANCE also seems different thing.
Is there any way to achive single component of float texture in WebGL?
depth_textureextension is bad for multi buffer drawing?! - LJᛃOES_texture_floatand then creategl.LUMINANCE, gl.FLOATorgl.ALPHA, gl.FLOATtextures. NotOES_texture_floatis pretty much only available on desktop machines not mobile. - gman