webgl
webgl: white border when using transparency (alpha)
When rendering textures that have an alpha-channel, a white border appears around the non-transparent part (the border seems to be the pixels that have an alpha > 0 and < 1):[详细]
2023-04-12 14:04 分类:问答WebGL pass array shader
I\'m new to WebGL and I\'m facing some problems of the shaders. I wanna do multiple light sources in the scene. I searched online and knew that in WebGL, you can\'t pass an arrayinto the fragment shad[详细]
2023-04-12 02:10 分类:问答Repeated textures with WebGL
I need to repeat a texture开发者_JS百科 within a single element. Is it even possible in WebGL? I tried either of the following but had no luck.[详细]
2023-04-11 16:04 分类:问答Displaying multiple frames of a video element simultaneously
Some background: graphics newbie here, have just dipped my toes into the world of 3D in the browser with mrdoob\'s excellent three.js. I intend to go through all the tuts at http://learningwebgl.com/[详细]
2023-04-10 23:23 分类:问答WebGL - Textured terrain with heightmap
I\'m trying to create a 3D terrain using WebGL. I have a jpg with the texture for the terrain, and another jpg with the height values (-1 to 1).[详细]
2023-04-10 14:26 分类:问答WebGL and rectangular (power of two) textures
WebGL is known to have poor support for NPOT (non-power-of-two) textures. But what about rectangular textures where both width and height are powers of two?Specifically, I\'m开发者_StackOverflow中文版[详细]
2023-04-09 22:55 分类:问答What is the best way of writing box-box ray collision detection in three.js?
The objects in this experiment are moving around randomly: http://deeplogic.info/project/webGL/ What is the best way of writing a box-box ray collision detection for t开发者_如何学Pythonhis using the[详细]
2023-04-08 13:05 分类:问答Firefox - Load texture cross-domain (WebGL)
I\'m having a problem loading images cross-domain in Firefox for WebGL and it works fine in Chrome. I\'ve implemented CORS on the server that has \"Access-Control-Allow-Origin: *\" in the response he[详细]
2023-04-07 20:11 分类:问答Save big webgl texture to disk
I did a webgl shader开发者_如何学JAVA that generate a procedural texture of about 8k * 4k. I need to save this texture to disk. I was wondering if there is some facility to do that. I know it would be[详细]
2023-04-06 05:12 分类:问答Make something shine in webgl & c3dl
I\'m building a little starfield program using webgl and such. Currently, my star are regular points. It looks nice from a very far distance, but pretty boring once you zoom into it.[详细]
2023-04-05 15:51 分类:问答