Questions tagged [fragment-shader]
A program that runs on the GPU to determine output colors for pixels. Also known as a fragment shader.
326 questions
5
votes
0
answers
169
views
+500
Recreating a 3D pixel art water effect
For the past few days I've been trying to recreate an effect from this blog post:
https://www.davidhol.land/articles/3d-pixel-art-rendering#water/
If you scroll down, you'll reach the water section in ...
0
votes
0
answers
19
views
Breaking up effect for Android
I am trying to create an animation for an Android TextView. I want to break-up the text into tiny pieces and apply some physics simulation as it breaks up!.
I will probably need to implement a custom ...
1
vote
0
answers
48
views
Creating 3d Cloud within the box using Metal shader
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 ...
0
votes
1
answer
86
views
IIn video games, are slight damage details, like say on a tank, made by modifying the geometry or by using textures?
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?
2
votes
1
answer
162
views
Hide Horizon Line with Small Terrain?
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 ...
0
votes
0
answers
42
views
tangents and bitangents or larger textures?
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 ...
0
votes
1
answer
144
views
GLSL ported shader not working in HLSL
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 ...
0
votes
1
answer
118
views
GLSL limit uniform sampler2D to 4 for some reason
I'm writing a deferred rendering pipeline and my fragment shader looks like this:
...
1
vote
1
answer
360
views
Unity shader to give thickness to flat plane
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 ...
1
vote
1
answer
254
views
How can I dynamically change the skin and blush colours of an animated sprite's face in Unity?
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 ...
5
votes
2
answers
574
views
How would I mask the player node out of a canvas shader?
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, ...
0
votes
0
answers
77
views
How to blend local cubemaps?
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 ...
0
votes
1
answer
438
views
How to apply sampler2Darray textures to different locations of a single mesh?
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;...
0
votes
1
answer
121
views
Which pixels does the fragment shader of an unlit shader, applied on an object, affect in Unity?
Let's say that I have a cube that has an unlit shader applied to it. The shader does basic ray-marching.
...
1
vote
0
answers
413
views
Expected a smoothly fading opacity in this Raylib shader, but instead it is chunky
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....