Skip to main content

Questions tagged [cg]

CG is a programming language for 3D graphics that runs on the GPU. It was designed by NVIDIA and Microsoft. It stands for "C for graphics"

0 votes
0 answers
36 views

Is there any way to do DOF & motion blur based on just 1 image & its depth image on a mobile platform?
gpu's user avatar
  • 21
0 votes
0 answers
413 views

I want to make a simple ray marching loop in the fragment shader. I think the main issue is that I'm not giving the correct world position input. Here is my current attempt: ...
Nikhil Nair's user avatar
4 votes
1 answer
4k views

I recently finished writing the DirectX renderer for my game engine. Now I have an OpenGL, DirectX as well as a not yet finished Vulkan renderer. Well, the majority of the renderers work perfectly now ...
PugsAreCute's user avatar
1 vote
0 answers
852 views

Currently i'm using Unity3D, and i want to make one variable blink along time in a fragment shader. Now i have code like this: ...
Areyana's user avatar
  • 156
0 votes
2 answers
373 views

Had plans to follow GPU Gems to gain knowledge in Shaders - but my journey came to an abrupt end. ...
Sindri's user avatar
  • 21
1 vote
1 answer
3k views

I recently asked a question about the creating an accurate Depth Intersection Shader. When creating this in a fragment / vertex shader it could be achieved by the following code ...
Dan's user avatar
  • 185
0 votes
1 answer
2k views

I've been working with this piece of code to get the mip map level that I should sample for a texture that I got off a forum somewhere. I noticed that they use a const float. Now from what I ...
Samuel Dresser's user avatar
1 vote
1 answer
4k views

I'm trying to create a shader in Unity with a slider that can adjust the transparency. (This is the first step toward something more sophisticated.) I try to do this by setting the alpha of the ...
AaronF's user avatar
  • 111

15 30 50 per page
1
2 3 4 5