shader
Passing values from my Java program into GLSL using lwjgl
Lets say I have a fairly complex frag shader for figuring out just how much light goes to each pixel:[详细]
2023-03-05 21:30 分类:问答When transforming textures (drawn as flat 3D objects) to mimic depth, black lines appear randomly
We are developing a top-down RPG using XNA. Recently we bumped into a setback when writing the code to display our maps. When drawing the map, top-down view with a normal transformation matrix, everyt[详细]
2023-03-04 21:11 分类:问答How to emulate GL_DEPTH_CLAMP_NV?
I have a platform where this extension is not available ( non NVIDIA ). How could I emulate this function开发者_运维知识库ality ?[详细]
2023-03-04 05:17 分类:问答Bundle Shader source with application?
I\'ve just wondering how to bundle my GLSL shader sour开发者_JS百科ce files (for OpenGL ES(iOs)/OpenGL with GLUT (Mac/Windows)) with my application. As pure text files, they would be easily changeable[详细]
2023-03-03 07:30 分类:问答Scale and rotate in OpenGL ES 2.0
Is there a way to include aspect ratio correction without using matrices in OpenGL ES? I am writing a simple shader to rotate a texture.[详细]
2023-03-02 22:25 分类:问答Writing a texture from a frag shader?
So, I read in a texture into my fragment shader.I can output to \"display开发者_StackOverflow中文版\"; but how do I output/write to another texture?Basically what I want to do is:[详细]
2023-03-02 20:46 分类:问答Help to understand Pixelate effect
I\'m new a HLSL and I\'m trying to understand a pixelate sample. However, I haven\'t been able to find a reference about how a couple of operations are. Here is the shader example:[详细]
2023-03-01 08:20 分类:问答Pow function vs lookup texture in shader
I\'m developing for the XBOX 360, and I use the pow() intrinsic in some lighting calculations. 6-8 years ago 开发者_开发问答it used to be common to use a 1D lookup texture to approximate pow(). Does[详细]
2023-02-28 21:00 分类:问答How to get BitmapImage bytes after applying <Image.Effect>
This one: BitmapSource originalImage; byte[] _originalPixels; _originalPixels = new byte[(int) originalImage.Width*(int) originalImage.Height*4];[详细]
2023-02-28 03:43 分类:问答How to tell if a computer supports OpenGL 2.0? (I want to write shaders)
I\'m interested in writing OpenGL shaders, but am not sure if my graphics card is good enough to support this or if my system is configured correctly to use the software alternative (Mesa). How do I t[详细]
2023-02-27 06:56 分类:问答
加载中,请稍侯......