shader
How to render depth linearly in modern OpenGL with gl_FragCoord.z in fragment shader?
I read lots of information about getting depth with fragment shader. such as http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=234519[详细]
2023-04-13 10:06 分类:问答OpenGL Transform Feedback got reverse-order result
I tried to use the transform feedback function, and I made 2 vertex shaders which only affects vertex position.[详细]
2023-04-13 05:08 分类:问答OpenGL FXAA issues
I am a Computer Science Student and I am currently doing a 2d Game for my Coursework. I know that it\'s kind of unnecessary, but I tried to implement the FXAA algorithm for the AA of the game. The sha[详细]
2023-04-13 00:21 分类:问答Displaying multiple cubes in OpenGL with shaders
I\'m new to OpenGL and shaders. I have a project that involves using shaders to display cubes. So basically I\'m supposed to display eight cubes using a perspective projection at (+-10,+-10,+-10) fro[详细]
2023-04-12 21:09 分类:问答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 分类:问答OpenGL/GLSL - Writing A Smart Texture Shader
Let\'s say my texture is 256x256 pixel. It contains 16 sub-textures of 64x64 pixel. The sub-textures are to be rendered to quads. To increase performance I want to pass discrete values to the shader w[详细]
2023-04-11 12:15 分类:问答What is supposed to happen with the transpose flag for glUniformMatrix with non-square matrices?
I encountered what seemed to me as strange behavior using glUniformMatrix4x3fv. Specifically when I give TRUE as for the transpose flag entire rows of my matrices are missing in my shader variable (an[详细]
2023-04-11 09:02 分类:问答Pass textures in shader
The problem is that I pass two textures in shader, but the picture on 3-d model is the same for both sampler2D variables开发者_运维技巧 (It is with image \"normal.jpg\", the first one.). I\'ll be very[详细]
2023-04-10 16:48 分类:问答Shader GLSL file Not compiling
I am writing my first program using OpenGL, and I have gotten to the point where I am trying to get it to compile my extremely simple shader program. I always get the error that it failed to compile t[详细]
2023-04-10 11:06 分类:问答Where do shaders fit in with the older methods of rendering in OpenGL?
I have written a level renderer in OpenGL following many online tutorials. I actually render with vertex arrays and the开发者_StackOverflow中文版 range draw command. Now because I want to have the lev[详细]
2023-04-10 11:02 分类:问答