Quantcast
Channel: Questions in topic: "shader programming"
Browsing all 169 articles
Browse latest View live
↧

Help with making a trail effect in a fragment shader

So I am doing a simple simulation where I create a vector of positions that I move in the CPU and pass it to the GPU using an Image Effedct shader to render circles. I want to do a trail effect for...

View Article


Is there a way I can read values of a height map from a shader graph?

Hey there, first off thanks for taking the time to read. Here's what I am trying to accomplish: I've created an ocean shader using shader graphs, and I would like to be able to adjust the wave...

View Article


Getting y coordinate of a pixel within the individual sprite frame for a shader

Hey everyone! I'm trying to make a custom 2D sprite shader that would make the bottom half of my sprite semi-transparent. So far, this is what I've been able to come up with: Shader "Custom/SinkInTile"...

View Article

Distortion of transparent objects with shadergraph + vfx graph, in unity 2022...

I want to distort transparent objects, use shadergraph + vfx graph for it. The way I distort transparent objects is that, I use grab pass (https://github.com/Haruma-K/URPGrabPass) which returns texture...

View Article

Can someone please help me simulate wind in this shader I'm working on?

So, I'm using a shader along with a c# script to instantiate grass meshes in my scene. The C# script provides the positions where the grass should be created at and passes it to the positions buffer in...

View Article


UI Image dissolve shader stop working on scene change

Hi, so I have a UI Dissolve shader im using as a fade in and out on a UI image. This works normally in one scene, but when trying to use it in other scenes it doesn't work, and then when coming back to...

View Article

How do I fix this in parallax occlusion mapping?

I am working on making parallax mapped bullet holes for a game and I honestly don't have any clue of how to use the shader editor. I made a parallax thing without any knowledge and it works fine like...

View Article

how to calculate attenuation for custom lighting function

I made a custom lighting function on a surface shader, there is a specific effect I want to achieve and for that I think I need to play with the attenuation value, but when I try to calculate it on the...

View Article


Changing color of crosshair based on color underneath using shaders

I'm new to shaders in general. What I want is to create a crosshair where the colors of it change depending on the color of what is being moused over. I've seen examples for shaders that have a...

View Article

Browsing all 169 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>