This is a extract from a Geometry shader. What i want to understand is how will the value of g_edge_distance be passed to the fragment shader. ...
This is a extract from a Geometry shader. What i want to understand is how will the value of g_edge_distance be passed to the fragment shader. ...
Suppose I want to render many different models, each with a different transformation matrix I want to be applied to their vertices. As far as I unders ...
Is it possible to detect when a format has a single channel in HLSL or GLSL? Or just as good, is it possible to extract a greyscale color from such a ...
https://www.khronos.org/opengl/wiki/Vertex_Shader says that "The vertex shader will be executed roughly once for every vertex in the stream." If we a ...
My intersection shader always reads just zeroes from the SSBO I have. I tried using debugPrintEXT, but it wouldn't print out from within the intersect ...
After changing the operating system, I could no longer use the SFML geometry shader and always got the following error: Oddly enough, the isAvailab ...
I am trying to create a retro sprite type environment in OpenGL 3.3. More specifically, with the use of palettes. From the sources I have found and us ...
I am trying to create a texture which uses a predefined palette (think of the NES). However no matter what I try it does not seem to go the way I want ...
I have a lot of pre-generated images (same size) that consist of curved and straight lines and a colorful fill. The problem is that: these lines a ...
I'm porting an application from Windows to Ubuntu 20.04 and none of my compute shaders will write to a texture. I've reproduced the problem in the fol ...
The following code needs to be converted to Metal for Xcode: ...
I'm trying to create a GLSL diffuse shader, but I'm getting a problem, some faces looks like they become transparent and the back faces are shown in f ...
I tried to make a cube in openGL and render a default texture on each side. I've been messing around with it for days but I cant get it to work. I rea ...
I am trying to hack this Plasma shader from ShaderToy so it works with Spark AR ... I'm very close but there is a weird issue with the shader being co ...
I need some help trying to move my circle with view matrix. I can position the circle but cant move it. How can i make this happen? Right now the the ...
I am trying to create two independent glowing lights but when a make the second share the light stretches between the 2 enter image description her ...
I am tring to use shader to draw rectangle with texture, following this tutorial, and this is my code: main.cpp: vertex.txt:: But it draws just ...
I have been going through the learnopengl tutorials recently and was on the texture tutorial. I was going through it and everything was working up unt ...
I'm trying to load a shader into an amd video card. After all the buffers are created, I try to create a new Compute pipeline. As i started to debug i ...
I have a buffer descriptor defined in GLSL shader in the following way: layout(set = 1, binding = 0) buffer ShadowMapData { ShadowMapItem items[]; } ...