Questions tagged [geometry-shader]
A geometry shader creates a list of vertices from a given set of input vertices in the rendering pipeline.
61 questions
1 vote
0 answers
104 views
Page curl effect
I am trying to simulate a page curl effect in my custom OpenGL based rendering engine. I initially implemented the version described in the paper "Turning pages of 3D electronic books" where ...
0 votes
1 answer
832 views
error X4532 Cannot map expression to gs_5_0 instruction set
Using DX11 I have this line starting with TC = txDiffuse in a geometry shader that generates the error message. Can someone explain me the problem or if it is not possible to sample in geometry shader ...
0 votes
0 answers
174 views
How to generate a randomly-positioned leaf quads with a geometry shader?
Does anyone have any idea how to implement a shader that manages to make this effect in Unity? I found a post that explains, but I'm still learning shaders so I didn't really understood how to go ...
-1 votes
1 answer
275 views
Pass equations into shaders to define graphics - HLSL or other shaders
Is it possible with HLSL (or other popular shader languages) to pass instead of an image, an equation that would define the pixel color / position output by the shader? This would allow for more ...
0 votes
0 answers
193 views
How do I store the texture coordinates for thousands of tiles in a tile mesh on the GPU and not just the most recent?
This is a follow-up to this question. The geometry shader is performing fantastically, but now I've lost the ability to display more than one tile type at once (the last one in the visible array is ...
0 votes
1 answer
628 views
Geometry shader vertex position to point at camera
I have a shader that takes an array of points. At each point, a geometry shader creates a quad oriented towards the camera. This works fine when the camera and point are at around the same Y value, ...
0 votes
1 answer
408 views
Can geometry grass shaders be painted to a terrain or are they limited to meshes?
So I was follow the roystan grass shader tutourial and although it works well I don't understand the use for it. From what I understand the shader is basically just a flat plane that calculates grass ...
1 vote
0 answers
366 views
Hard coded triangle in CG geometry shader doesn't show on screen
In Unity I'm planning on using a geometry shader for processing points into quads and can't quite figure out why I'm not getting output from my geometry shader. I've edited it down to a minimum ...