fragment-shader
Passing int array to fragment shader
I\'m attempting to plot an iterative function in OpenGL ES. An array of ints is being updated with how often a given pixel is hit by the iterative function. I\'d like to pass this density array to a f[详细]
2023-01-28 17:18 分类:问答How to replace a GLSL uniform array with a 1D texture
I am trying to get Ardor3D\'s terrain system to work on SM3.0 hardware. The current GLSL fragment shader uses a uniform vec2 array to pass an array of xy coordinates into the fragment shader.[详细]
2023-01-28 15:57 分类:问答BlitzMax - generating 2D neon glowing line effect to png file
I\'m looking to create a glowing line effect in BlitzMax, something like a Star Wars lightsaber or laserbeam. Doesn\'t have to be realtime, but just to TImage objects and then maybe saved to PNG for l[详细]
2023-01-25 16:04 分类:问答Aggravating OpenGL Texture Issue
I\'m having issues trying to get a texture loaded into VRAM.I\'m using OpenGL on Mac OS X.I have geometry that I\'ve successfully renderer by passing a color into my fragment shader.However, as soon a[详细]
2023-01-20 05:22 分类:问答Getting normal information from OpenGL render output
I\'ll try to keep this simple. I want a way to access the normal information of the scene, from the Frame Buffer output (or similar). The same way one is able to access the Depth Buffer using glGetTe[详细]
2023-01-03 09:08 分类:问答How to run Cg vertex/fragment shader on CPU?
I\'m playing about with some vertex and fragment shaders using Cg on my little netbook (running Linux). Clearly I\'m going to frequently hit resource limits for my graphics controller, so was wonderin[详细]
2022-12-31 10:05 分类:问答Does OpenGL stencil test happen before or after fragment program runs?
When I set glStencilFunc( GL_NEVER, . . . ) effectively disabling all drawing, and then run my [sh开发者_如何学运维ader-bound] program I get no performance increase over letting the fragment shader ru[详细]
2022-12-29 03:13 分类:问答Fragment Shader Eye-Space unscaled depth coordinate
I\'m trying to use the uns开发者_Python百科caled (true distance from the front clipping plane) distance to objects in my scene in a GLSL fragment shader.The gl_FragCoord.z value is smaller than I expe[详细]
2022-12-28 16:47 分类:问答随缘的个性签名简短?
360U627888150 2022-03-21 01:06 开发者_如何学编程 生命如潮涨潮落,时光的流水终要带来些什么也带走些什么,带来的欣然接受,带走的不做无谓的挽留。学会在自己的情绪里寻求解脱,只要你愿意,你,也可以对天[详细]
2022-12-28 12:58 分类:问答How do I get the current color of a fragment?
I\'m trying to wrap my head around shaders in GLSL, and I\'ve found some useful resources and tutorials, but I keep running into a wall for something that ought to be fundamental and trivial: how does[详细]
2022-12-28 11:33 分类:问答