Skip to main content

Questions tagged [fragment-shader]

A program that runs on the GPU to determine output colors for pixels. Also known as a fragment shader.

0 votes
1 answer
113 views

I have an effect that I want to only write to depth. commandList->OMSetRenderTargets(0, nullptr, FALSE, &m_mainDepthStencilDescriptorHandle.getCpuHandle()); ...
TheChamp's user avatar
  • 103
5 votes
1 answer
546 views

For the past few days, I've been trying to recreate an effect from this blog post on 3D Pixel Art Rendering by David Holland. If you scroll down, you'll reach the Water section in which the author ...
Garflington's user avatar
1 vote
0 answers
92 views

I tried to create a cloud filled in the box geometry, I tried using raymarching with noise texture as well direct noise function and fbm - fbm motions is good. but cloud is not get proper result like ...
Krishnan PA's user avatar
0 votes
1 answer
110 views

Here are images of real tanks and I drew arrows into the places with slight damage: In video games, are those made by modifying the geometry or with textures?
kyopa's user avatar
  • 143
2 votes
1 answer
205 views

I'm drawing a sky plane with an atmosphere fragment shader in front of my terrain. It looks pretty much fine at sea level, but if you move above the sea level, the illusion is quickly broken, as you ...
Scollier's user avatar
  • 124
0 votes
0 answers
58 views

This is more of a performance question than anything, but some time ago I learned that to put normal maps in OpenGL 3D rendering, I could do it in two ways... The first is generally what most people ...
Arthur Sally's user avatar
0 votes
1 answer
212 views

I have been working on an Infinity Grid shader for my engine. It was already implemented to Vulkan’s GLSL, so it worked great with OpenGL’s (4.6) GLSL. Here's a reference. This basic shader with ...
Kenny Tutorials's user avatar
0 votes
1 answer
178 views

I'm writing a deferred rendering pipeline and my fragment shader looks like this: ...
Ronen Ness's user avatar
1 vote
1 answer
545 views

I have this hexagonal grate floor: Which is a flat plane with the following shader: The hex lattice created using the method by Andrew Hung. Albedo and metallic/smoothness shader are just simple ...
Dr Rob Lang's user avatar
1 vote
1 answer
308 views

I want to achieve this effect in unity when processing my sprites before After I was thinking that I could use two color pickers to tell a shader only to create a gradient if two colors share a ...
hello's user avatar
  • 11
5 votes
2 answers
734 views

I'm making a 3D game, and I want to create a post processing effect using a canvasitem and a colorrect, that effects everything on screen apart from the player. I already have the shader itself made, ...
JackHainsworth's user avatar
0 votes
0 answers
96 views

I have a (GPU) Buffer that contains the World Position and Extents of Local Cubemaps aswell as a TextureArray that contains the textures of the Cubemaps. The Bounds of the Local Cubemaps are Axis ...
Raildex's user avatar
  • 812
0 votes
1 answer
517 views

In openGL, I have a 3D terrain composed of a grid of 255x255 vertices. The vertex of the lower left corner is at coordinates (-127;-127) and the one of the upper right corner is at coordinates (127;...
Greelings's user avatar
  • 103
0 votes
1 answer
152 views

Let's say that I have a cube that has an unlit shader applied to it. The shader does basic ray-marching. ...
Nikhil Nair's user avatar
1 vote
0 answers
457 views

In my main file, I create a regular icosahedron and assign the below shaders to it using the Raylib framework in C++17. I intended for the vertex shader to assign a 1.0 alpha value to points at Z=-5....
James Watson's user avatar

15 30 50 per page
1
2 3 4 5
22