Advertisement

Latest geometryshader Activity

I've been staring this for quite some time now and I'm seriously beginning to think that I'm going insane. I'm sure I'm missing something trivial somewhere, but I'm running out of ideas where to look:

  • I have a vertex shader, which takes a stream of integers (32-bit, I've checked the data and shader …
3,814 views
Advertisement

Hi

I'm trying to implement wireframe drawing with hidden line removal. In the geometry shader I make lines from the input triangle. I plan to change the z-value in the geometry shader so that the lines are closer to the camera to avoid stippling (maybe this approach is wrong too). 

I want to do …

4,065 views

To fix z fighting when rendering a wireframe on top of another mesh, you want to change your depth test to something similar to GL_LEQUAL (less than or equal to comparison), instead of the usual GL_LESS. This will make your depth test succeed if the depth is equal (which is the case if you render t…

3,925 views

Got it working, found some code to help. ?

#version 430
layout (points) in;                              
layout (triangle_strip, max_vertices = 34) out; // 16 steps


uniform int img_width;
uniform int img_height;
uniform int cam_factor;
uniform vec3 camera_pos; // assumes that the lookat is effect…
9,539 views
Best way to draw outlines for a toon shader: Geometry shader? During post processing? Something else?

hplus0603 said:
Based on depth buffer (texture) reads. …

Based on ID buffer (stencil, or separate color channel) reads. …

If I'm not much mistaken, these two techniques can be used to reinforce each other--the former capturing outlines within an object (e.g. a character's arm extended across their che…

9,273 views
Advertisement
Advertisement
Advertisement