0
votes
1answer
276 views

OpenGL Tessellation makes point

A little problem with my tessellation shader. I try to implement a simple tessellation shader but it only makes points. Here's my vertex shader : out vec4 ecPosition; out vec3 ecNormal; void ...
3
votes
0answers
153 views

2D water shader similar to Limbo's effect

I'm wondering how I would go about creating a 2D water shader that is seen in this video http://www.youtube.com/watch?v=phChFfi4GOs The water effect that limbo uses is pretty awesome. I'm not so ...
3
votes
0answers
187 views

Suitability of ground fog using layered alpha quads?

A layered approach would use a series of massive alpha-textured quads arranged parallel to the ground, intersecting all intervening terrain geometry, to provide the illusion of ground fog quite ...
3
votes
0answers
687 views

Sampling from depth texture causes shader to stop working

I'm currently having issues with depth textures. When I sample from a depth texture it causes my other samplers to fail. For example, when I set gl_FragColor manually the depth buffer is correct. I ...
1
vote
0answers
508 views

ssao implementation

I try to implement a ssao based on this tutorial: link I use a deferred rendering and world coordinates for shading calculations. When saving gbuffer a vertex shader output looks like this: ...
0
votes
0answers
45 views

NVIDIA FX Composer 2.5 not updating time in preview

I started testing shaders today and got a problem with FX Composer. When I download Shaders from the Shader Library it compiles them fine and I get a preview which applies the material to the object, ...
0
votes
0answers
80 views

Opengl binding shaders vs binding buffers performance

Quick question for an opengl guru, I'm in the process of building a render queue and can either reduce the number of shader binding or the number of vertex buffer binding. I just want to know which ...
0
votes
0answers
232 views

Making shaders work for both ATI and NVIDIA in Blender Game Engine

Unfortunately coding OpenGL shaders is more strict for ATI cards. I am trying to get this code from this thread http://blenderartists.org/forum/showthread.php?245954-preethams-sky-impementation-HDR to ...
0
votes
0answers
2k views

GLSL Shader Texture Performance

I currently have a project that renders OpenGL video using a vertex and fragment shader. The shaders work fine as-is, but in trying to add in texturing, I am running into performance issues and can't ...
0
votes
0answers
208 views

Differences in cg shader code for OpenGL vs. for DirectX?

I have been trying to use an existing library that automatically generates shaders (Hydrax plugin for Ogre3D). These shaders are used to render water and somewhat involved, but are not extremely ...