Skip to main content

Questions tagged [shaders]

a computer program that runs on graphics hardware and provides a high degree of control over how scenes are rendered

0 votes
1 answer
97 views

How do you detect edges in a PNG map

so basically i'm making a personal project based around a strategy map game. I'm using this image as the map: The problems are as follows: I can't detect the borders as it is not an SVG If the first ...
Macr Nostaski's user avatar
5 votes
0 answers
165 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 ...
Garflington's user avatar
0 votes
0 answers
21 views

How do you make unity shader with custom lighting usable in deferred rendering mode

I found a unity shader with custom lighting method that approximates subsurface scattering effect. I tried using it in deferred rendering mode and unfortunately it doesn't work. From what I have read ...
V.R.S's user avatar
  • 35
0 votes
0 answers
41 views

Projecting 3D gaussian's transform matrix to a 2D viewspace transform matrix

Essentially I'm wanting to project: A 3D transformation matrix of a Gaussian (or in this case for simplicity a unit sphere) that includes scale, rotation and translation in world space TO A 2D ...
Arcane Blackwood's user avatar
0 votes
0 answers
48 views

How do I add an outline to a Unity tilemap?

Is it possible to add a nice outline to a unity tilemap? For example, if my tilemap looks something like the image on the left, I want to make it render like the image on the right: I found this ...
Robin's user avatar
  • 465
1 vote
0 answers
20 views

How to apply a noise texture to an image or sprite in Phaser as a postFX?

I'm trying to figure out if it's possible to blend a (noise)texture with an image by creating a shader, and then apply the shader as a postFX to an image (or sprite). (see attached image) ...
John's user avatar
  • 294
0 votes
0 answers
17 views

Lost preview frames on ID3D10RenderTargetView in DirectX 10

Problem: This code should do a right-shifting trailing effect by accumulating previous frames on g_pSurfaceImg[0] but fails. Incorrect result: the image that should ...
Alex Veres's user avatar
1 vote
1 answer
26 views

How to make tiling properties work with additional texture slots in a Unity Surface Shader?

I have created a custom shader based on Unity's standard surface shader, but tiling and offset properties don't work at all. Only the albedo texture slot's tiling works. How do you make tiling work ...
V.R.S's user avatar
  • 35
1 vote
0 answers
30 views

Can I apply a single material over every submesh?

I have a shader for outlining an object, how do I apply the material with this shader to all submeshes, not just the last one?
d1spatcher's user avatar
0 votes
3 answers
141 views

How to use a Shader Graph to layer a texture over a sprite without being affected by the sprite's alpha?

I have a hexagon sprite MainTex over which I want to render an outline texture SecondaryTex independent of the alpha value of the MainTex. Since I have a fairly large grid with many hexagons, two ...
Jachuc's user avatar
  • 45
0 votes
1 answer
15 views

Problems supplying per-vertex alpha data to Monogame shader

I am trying to make a trail renderer in Monogame. What I have currently is a procedurally created trail-mesh with properly applied UV coordinates, and what I have left to do is apply a per-vertex '...
Depenau's user avatar
  • 111
0 votes
1 answer
46 views

Post process effect with sphere mask is offset until the window is resized

I am having a weird issue with the position of my sphere mask. Here is what it looks like currently: The white disc should be directly under the player character, not shifted off to the side. ...
Juicef's user avatar
  • 129
0 votes
1 answer
82 views

Is memcpy safe to use to fill an ID3DBlob with a pre-compiled shader?

Following my post Saving shaders to file I then tried to load shader object files to recreate my shaders. I found some Q&A about how to load precompiled HLSL shaders into memory, including a short ...
philB's user avatar
  • 221
1 vote
1 answer
93 views

Saving shaders to file

I'm in the process of writing saving/loading function for my little game. I'm willing to save the shaders as resource as I did for texture and meshes. I have a _SHADER struct that contains the VS/PS ...
philB's user avatar
  • 221
0 votes
0 answers
31 views

Increasing final image scaling with shaders on top to 125%?

When I apply the canvas_item barrel distortion shader to my viewport, there is a noticeable loss of resolution in the center of the screen. Therefore, is it possible to scale the final image + fisheye ...
ThetaJones's user avatar

15 30 50 per page
1
2 3 4 5
136